JavaScript String

Voca is a JavaScript library for manipulating strings. https://vocajs.com v.camelCase('bird flight'); // => 'birdFlight' v.sprintf('%s costs $%.2f', 'Tea', 1.5); // => 'Tea costs $1.50' v.slugify('What

 3.4k
Sindre Sorhus
Slugify a string

sindresorhus/slugify

slugify Slugify a string Useful for URLs, filenames, and IDs. Install $ npm install @sindresorhus/slugify Usage const slugify = require('@sindresorhus/slugify'); slugify('I ♥ Dogs'); //=> 'i-

 2.1k
Sindre Sorhus
Generate a cryptographically strong random string

sindresorhus/crypto-random-string

crypto-random-string Generate a cryptographically strong random string Can be useful for creating an identifier, slug, salt, fixture, etc. Install $ npm install --save crypto-random-string Usage

 356

niceware A JS library for generating random-yet-memorable passwords, either server-side in Node or in the browser. Each word provides 16 bits of entropy, so a useful password requires at least 3 words. Because the wordlist is

 248
Thomas Watson
Get a progress bar as a string

watson/progress-string

progress-string Generate a CLI progress bar as a string that you can then output in any way you like. Installation npm install progress-string --save Usage var progress = require('progress-string')

 89
Sindre Sorhus
Generate a unique random string

sindresorhus/unique-string

unique-string Generate a unique random string Install $ npm install --save unique-string Usage const uniqueString = require('unique-string'); uniqueString(); //=> 'b4de2a49c8ffa3fbee04446f0454

 76

Fuzzy Search A JavaScript plugin to find exact and fuzzy matches in a library of strings. Using Generator Babel Boilerplate. Example codepen.io/jakealbaugh/pen/wzzrmX Overview Fuzzy Search provides sea

 66

deline An ES6 string tag that strips unwanted newlines from multi-line strings. Usage import deline from 'deline'; function usageExample() { const example1 = deline` A string that’s too long to put on one lin

 62

transai transai is a command line tool to help you do Android and iOS translation management. You can extract string files to csv format, or generate string files from csv file for both Android, iOS and Mac. Inst

 57

number-pad Convert a string to a number based on a classic phone number pad encoding npm install number-pad Usage var numberPad = require('number-pad') console.log(numberPad('data')) // 3282 Comman

 35

slice.js slice.js is a simple(< 1 Kb) javascript library to engance String.substring / Array.slice with python slice style. In python, we can process string or array with code below: string = '12345678' print (string[

 34
Patrick Collins
A repo for generating random NFTs with metadata 100% on chain!

PatrickAlphaC/all-on-chain-generated-nft

All On Chain Generated NFT This is a repo that shows 2 things: How to create NFTs with metadata that is 100% on-chain How we can generate random art o

 30

Replace all instances of "@@strings like this" with hashes.

 27
Lunar Logic
Random text generator

LunarLogic/js-ipsum

JS Ipsum - put some JavaScript into your mockups JS Ipsum is a random text generator. It takes real JavaScript buzzwords definitions from JS Jargon and mixes them in unexpected ways that will make you laugh and cry inside (at the

 26

sqlobj A JavaScript utility used to build SQL strings via an Object Install $ npm install sqlobj Usage SELECT var sqlobj = require('sqlobj'); var options = { select: '*', from: 'user', wh

 3