Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
string-text-formatter
Advanced tools
Format string text for seo friendly url slug, seo friendly url slug with unique id
Format string text for seo friendly url slug, seo friendly url slug with unique id
$ npm install --save string-text-formatter
import * as text from 'string-text-formatter';
// Remove all special characters and format string
const str = 'What is Lorem Ipsum?';
// Lower Case Method
const lowerCaseString = text.lowerCase(str);
console.log(lowerCaseString);
// what is lorem ipsum
// Upper case Method
const upperCaseString = text.upperCase(str);
console.log(upperCaseString);
// WHAT IS LOREM IPSUM
// Convert space using any character Method
const convertedString = text.convertString(str,'_');
console.log(convertedString);
// What_is_Lorem_Ipsum
// Seo friendly url slug method
const urlSlug = text.urlSlug(str);
console.log(convertedString);
// what-is-lorem-ipsum
// Seo friendly url slug with unique id method
const urlSlugUnqiue = text.urlSlugUnqiue(str);
console.log(urlSlugUnqiue);
// what-is-lorem-ipsum-1555935965905
// Generate random string method
// genetate alfhanumeric string
@params
length: total string length (Default 8)
allowSpecialCharacters: true / false
const string1 = text.randomString(12, false);
console.log(string1);
// xg7IqOAqo97v
const string2 = text.randomString(12, true);
console.log(string1);
// _HNu19-C^ohH
FAQs
Format string text for seo friendly url slug, seo friendly url slug with unique id, random string generator
The npm package string-text-formatter receives a total of 4 weekly downloads. As such, string-text-formatter popularity was classified as not popular.
We found that string-text-formatter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.