Package category
Strings and text
Slugify, escape, pad, pluralise, diff and transform text.
205 packages1 comparisons
Packages compared
205 packages
| Package | Weekly downloads | 12-month change | 52 weeks | Gzip | Last release | Module | Types | Categories |
|---|---|---|---|---|---|---|---|---|
| to-space-case Convert a string to space case. | 1.4m | +51% | - | 10 years ago 1.0.0 | - | - | Strings and text | |
| case Extensible string utility for converting, identifying and flipping string case | 1.3m | +51% | - | 6 years ago 1.6.3 | - | - | Strings and text | |
| make-plural Unicode CLDR pluralization rules as JavaScript functions | 1.3m | +16% | - | 8 months ago 8.1.0 | - | - | Internationalisation, Strings and text | |
| xcase Blazingly fast recursive convertion to and from camelCase or PascalCase for Objects and Arrays | 1.2m | +66% | - | 9 years ago 2.0.1 | CommonJS | None | Strings and text | |
| inflected A port of ActiveSupport's inflector to Node.js | 1.1m | +44% | - | 6 years ago 2.1.0 | ESM + CommonJS | None | Strings and text | |
| lz-utils Utils for string compression and decompression with multiple strategies for Node.js and browser | 1.1m | +232% | - | 5 months ago 2.1.1 | ESM + CommonJS | Bundled | Strings and text | |
| levenary [](https://www.npmjs.com/package/levenary) [](https://github.com/tanhauhau/levenary/actions) | 1.1m | -6% | - | 6 years ago 1.1.1 | ESM + CommonJS | None | Strings and text | |
| slug slugifies even utf-8 chars! | 1m | +240% | - | 2 months ago 12.0.1 | ESM only | None | Strings and text | |
| globalize A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data. | 1m | +90% | - | 11 months ago 1.7.1 | CommonJS | None | Internationalisation, Strings and text | |
| humps Underscore-to-camelCase converter (and vice versa) for strings and object keys in JavaScript. | 993.5k | +33% | - | 9 years ago 2.0.1 | CommonJS | None | Utility libraries, Strings and text | |
| unescape-js Unescape JavaScript special characters | 947.8k | +9% | - | 6 years ago 1.1.4 | CommonJS | None | Strings and text | |
| dashify Convert a camelcase or space-separated string to a dash-separated string. ~12 sloc, fast, supports diacritics. | 735.3k | +16% | - | 7 years ago 2.0.0 | CommonJS | None | Strings and text | |
| to-camel-case Convert a string to camel case. | 686.2k | +19% | - | 10 years ago 1.0.0 | - | None | Strings and text | |
| pluralize-esm Pluralize and singularize any word | 682.5k | +239% | - | 3 years ago 9.0.5 | ESM + CommonJS | Bundled | Strings and text | |
| i custom inflections for nodejs | 645.6k | +13% | - | 5 years ago 0.3.7 | CommonJS | None | Strings and text, Utility libraries | |
| transliteration Unicode to ASCII transliteration / slugify module for node.js, browser, Web Worker, ReactNative and CLI. | 624.6k | +15% | - | 8 months ago 2.6.1 | ESM + CommonJS | Bundled | Strings and text | |
| stringz Zero-dependency unicode-aware string tools | 608.2k | +47% | - | 6 years ago 2.1.0 | CommonJS | Bundled | Strings and text | |
| @stdlib/string-format Insert supplied variable values into a format string. | 603.8k | - | - | - | 7 months ago 0.2.3 | CommonJS | Bundled | Utility libraries, Strings and text |
| @stdlib/string-replace Replace search occurrences with a replacement string. | 595.3k | - | - | - | 7 months ago 0.2.3 | CommonJS | Bundled | Utility libraries, Strings and text |
| @stdlib/string-base-format-tokenize Tokenize a string into an array of string parts and format identifier objects. | 554.3k | - | - | - | 7 months ago 0.2.4 | CommonJS | Bundled | Utility libraries, Strings and text |
| @stdlib/string-base-format-interpolate Generate string from a token array by interpolating values. | 554.2k | - | - | - | 7 months ago 0.2.4 | CommonJS | Bundled | Utility libraries, Strings and text |
| humanize-string Convert a camelized/dasherized/underscored string into a humanized one: `fooBar-Baz_Faz` → `Foo bar baz faz` | 548.1k | +49% | - | 1 year ago 3.1.0 | ESM only | Bundled | Strings and text | |
| pad-left Left pad a string with zeros or a specified string. Fastest implementation. | 499.8k | +88% | - | 10 years ago 2.1.0 | CommonJS | None | Strings and text | |
| just-camel-case convert a string to camel case | 486.5k | +256% | - | 3 years ago 6.2.0 | ESM + CommonJS | Bundled | Strings and text | |
| runes2 Unicode-aware JS string splitting, typescript version | 402.4k | +151% | - | 13 days ago 1.1.10 | ESM + CommonJS | Bundled | Strings and text | |
| backslash parse string escapes (\n, \r, etc.) | 367.8k | +36% | - | 1 year ago 0.2.2 | - | None | Strings and text | |
| string-to-stream Convert a string into a stream (streams2) | 358.2k | +96% | - | 7 years ago 3.0.1 | CommonJS | None | Strings and text, DOM and browser utilities | |
| chunk-text 🔪 chunk/split a string by length without cutting/truncating words. | 350.2k | +2830% | - | 6 years ago 2.0.1 | ESM + CommonJS | None | Strings and text | |
| @phun-ky/typeof A set of JavaScript helper functions to check for types | 307k | - | - | - | 1 month ago 3.0.7 | ESM only | Bundled | Strings and text |
| @textlint/regexp-string-matcher Regexp-like string matcher. | 283.2k | - | - | - | 4 years ago 2.0.2 | CommonJS | Bundled | Strings and text |
| @orchidjs/unicode-variants Unicode variant string matching | 221.7k | - | - | - | 1 year ago 1.1.2 | ESM + CommonJS | Bundled | Strings and text |
| voca The ultimate JavaScript string library | 191.3k | +105% | - | 3 years ago 1.4.1 | ESM + CommonJS | None | Strings and text | |
| string-hash-64 fast 64 bit string hashing function | 184.2k | +84% | - | 9 years ago 1.0.3 | CommonJS | None | Strings and text, Cryptography and hashing | |
| @stream-io/transliterate Convert Unicode characters to Latin characters using transliteration | 176.4k | - | - | - | 4 years ago 1.5.5 | ESM + CommonJS | Bundled | Strings and text |
| url-slug Tiny, zero-dependency slug generator (~700 bytes gzipped) with full TypeScript support — converts strings into clean, RFC 3986-compliant slugs and reverts them back to sentences | 175.5k | -17% | - | 5 days ago 5.2.0 | ESM + CommonJS | Bundled | Strings and text, TypeScript tooling | |
| string-comparison A library implementing different string similarity | 171.5k | +127% | - | 2 years ago 1.3.0 | ESM + CommonJS | Bundled | Strings and text | |
| diacritic Removes accents / diacritics from strings, sentences, and paragraphs fast and effeciently. | 167.6k | +27% | - | 12 years ago 0.0.2 | CommonJS | None | Strings and text | |
| string-similarity-js Calculates similarity between two strings | 135.1k | +92% | - | 5 years ago 2.1.4 | CommonJS | None | Strings and text, TypeScript tooling | |
| str2buf isomorphic string <=> buffer in 198 bytes | 131.6k | +41% | - | 8 years ago 1.3.0 | ESM + CommonJS | None | Strings and text | |
| string-kit A string manipulation toolbox, featuring a string formatter (inspired by sprintf), a variable inspector (output featuring ANSI colors and HTML) and various escape functions (shell argument, regexp, html, etc). | 123.9k | -2% | - | 2 months ago 0.19.5 | CommonJS | None | Strings and text | |
| string-pixel-width String pixel width measurement on the backend in Javascript | 78.9k | +207% | - | 3 years ago 1.11.0 | CommonJS | None | Strings and text | |
| plurals-cldr Plurals support, generated from CLDR. | 70.4k | +0% | - | 4 years ago 2.0.1 | - | None | Internationalisation, Strings and text | |
| js-levenshtein-esm The most efficient JS implementation calculating the Levenshtein distance, i.e. the difference between two strings. | 69.7k | +50% | - | 1 year ago 2.0.0 | ESM only | Bundled | Strings and text | |
| any-ascii Unicode to ASCII transliteration | 67.6k | +803% | - | 1 year ago 0.3.3 | ESM only | Bundled | Strings and text | |
| emoji-aware Emoji-aware unicode string utilities | 67.6k | +1385% | - | 1 month ago 3.1.1 | CommonJS | None | Strings and text | |
| uppercamelcase Convert a dash/dot/underscore/space separated string to UpperCamelCase | 65k | -7% | - | - 3.0.0 | - | None | Strings and text | |
| string string contains methods that aren't included in the vanilla JavaScript string such as escaping html, decoding html entities, stripping tags, etc. | 62.2k | -4% | - | 9 years ago 3.3.3 | CommonJS | None | Strings and text | |
| persian-normalize Normalize Persian and Arabic-script text. Fold ZWNJ, Arabic yeh/kaf, three digit sets and diacritics into one comparable form — or clean text for storage without destroying it. | 54.2k | - | - | 16 days ago 1.0.0 | ESM only | Bundled | Strings and text, AI and machine learning | |
| @wessberg/stringutil A collection of helper functions for working with strings | 53.2k | - | - | - | 6 years ago 1.0.19 | ESM + CommonJS | Bundled | Strings and text, Utility libraries |
| string-character-is-astral-surrogate Tells, is given character a part of astral character, specifically, a high and low surrogate | 52.6k | +111% | - | 19 days ago 3.2.2 | ESM only | Bundled | Strings and text |
12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package, as measured by Bundlephobia. "-" means the value has not been fetched.
- to-space-caseConvert a string to space case.
- caseExtensible string utility for converting, identifying and flipping string case
- make-pluralUnicode CLDR pluralization rules as JavaScript functions
- xcaseBlazingly fast recursive convertion to and from camelCase or PascalCase for Objects and Arrays
- inflectedA port of ActiveSupport's inflector to Node.js
- lz-utilsUtils for string compression and decompression with multiple strategies for Node.js and browser
- levenary[](https://www.npmjs.com/package/levenary) [](https://github.com/tanhauhau/levenary/actions)
- slugslugifies even utf-8 chars!
- globalizeA JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data.
- humpsUnderscore-to-camelCase converter (and vice versa) for strings and object keys in JavaScript.
- unescape-jsUnescape JavaScript special characters
- dashifyConvert a camelcase or space-separated string to a dash-separated string. ~12 sloc, fast, supports diacritics.
- to-camel-caseConvert a string to camel case.
- pluralize-esmPluralize and singularize any word
- icustom inflections for nodejs
- transliterationUnicode to ASCII transliteration / slugify module for node.js, browser, Web Worker, ReactNative and CLI.
- stringzZero-dependency unicode-aware string tools
- @stdlib/string-formatInsert supplied variable values into a format string.
- @stdlib/string-replaceReplace search occurrences with a replacement string.
- @stdlib/string-base-format-tokenizeTokenize a string into an array of string parts and format identifier objects.
- @stdlib/string-base-format-interpolateGenerate string from a token array by interpolating values.
- humanize-stringConvert a camelized/dasherized/underscored string into a humanized one: `fooBar-Baz_Faz` → `Foo bar baz faz`
- pad-leftLeft pad a string with zeros or a specified string. Fastest implementation.
- just-camel-caseconvert a string to camel case
- runes2Unicode-aware JS string splitting, typescript version
- backslashparse string escapes (\n, \r, etc.)
- string-to-streamConvert a string into a stream (streams2)
- chunk-text🔪 chunk/split a string by length without cutting/truncating words.
- @phun-ky/typeofA set of JavaScript helper functions to check for types
- @textlint/regexp-string-matcherRegexp-like string matcher.
- @orchidjs/unicode-variantsUnicode variant string matching
- vocaThe ultimate JavaScript string library
- string-hash-64fast 64 bit string hashing function
- @stream-io/transliterateConvert Unicode characters to Latin characters using transliteration
- url-slugTiny, zero-dependency slug generator (~700 bytes gzipped) with full TypeScript support — converts strings into clean, RFC 3986-compliant slugs and reverts them back to sentences
- string-comparisonA library implementing different string similarity
- diacriticRemoves accents / diacritics from strings, sentences, and paragraphs fast and effeciently.
- string-similarity-jsCalculates similarity between two strings
- str2bufisomorphic string <=> buffer in 198 bytes
- string-kitA string manipulation toolbox, featuring a string formatter (inspired by sprintf), a variable inspector (output featuring ANSI colors and HTML) and various escape functions (shell argument, regexp, html, etc).
- string-pixel-widthString pixel width measurement on the backend in Javascript
- plurals-cldrPlurals support, generated from CLDR.
- js-levenshtein-esmThe most efficient JS implementation calculating the Levenshtein distance, i.e. the difference between two strings.
- any-asciiUnicode to ASCII transliteration
- emoji-awareEmoji-aware unicode string utilities
- uppercamelcaseConvert a dash/dot/underscore/space separated string to UpperCamelCase
- stringstring contains methods that aren't included in the vanilla JavaScript string such as escaping html, decoding html entities, stripping tags, etc.
- persian-normalizeNormalize Persian and Arabic-script text. Fold ZWNJ, Arabic yeh/kaf, three digit sets and diacritics into one comparable form — or clean text for storage without destroying it.
- @wessberg/stringutilA collection of helper functions for working with strings
- string-character-is-astral-surrogateTells, is given character a part of astral character, specifically, a high and low surrogate