
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
string-text-formatter
Advanced tools
Format string text for seo friendly url slug, seo friendly url slug with unique id, random string generator
Format string text for seo friendly url slug, seo friendly url slug with unique id, random string generator
$ 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(string2);
// _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 1 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.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.