@ts-standard-library/string
A collection of string manipulation utilities for TypeScript.
Found 9492 results for string utilities
A collection of string manipulation utilities for TypeScript.
String utilities
Utilities for calculating fingerings on string instruments
Standard utilities codes and types.
MCP server providing random generation utilities including UUID, numbers, strings, passwords, Gaussian distribution, dice rolling, and card drawing
Lots of utilities for Node.js
Bscotch Utilities: Methods for common Node.js needs.
sprintf parser and basic formatter
A collection of JavaScript utilities.
String utilities and methods for nodeJS
Various string utilities from the piton toolkit
Additional Zod schemas and utilities.
Utilities for processing strings or stringify other type data.
Utilities that allow us to do simple management of Guids or uuids as strings
Tiny TypeScript utilities: strings & date formatter
Utilities for transforming and formatting text (i.e. strings)
febs is a useful utilities set
Simple utilities for modern [npm](https://www.npmjs.com/) packages.
string utilities
Written provides a set of utilities for manipulating text, with a focus on providing typographic tools rather than pure string manipulation.
A comprehensive string utilities module with extensive functionality
Convenient string utilities
Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.
kodmunki Utilities for ECMAScript UI Kernel
A library of types and utilities for your TypeScript and JavaScript projects
ANSI escape codes for styling strings in the terminal
Strip ANSI escape codes from a string
Terminal string styling done right
Type-safe utilities for working in TypeScript. For example, a type-safe property path type, deep partial type, etc.
Regular expression for matching ANSI escape codes
Lightweight, dependency-free string utilities for Node.js and TypeScript.
Get the visual width of a string - the number of columns required to display it
Escape RegExp special characters
String encoding utilitlies extracted from TweetNaCl.js
Wordwrap a string with ANSI escape codes
Readable regex transformations, validations, and utilities with both static and chainable API.
Get the native type of a value.
The string_decoder module from Node core
Strip UTF-8 byte order mark (BOM) from a string
Check if the character represented by a given Unicode code point is fullwidth
A comprehensive string utilities module with extensive functionality
Parse JSON with more helpful errors
Get a stream as a string, Buffer, ArrayBuffer or array
Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`
Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
Modify strings, generate sourcemaps
The string utilities for JavaScript/TypeScript.
Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet
ANSI escape codes for manipulating the terminal
Lightweight utility package with 30+ functions for storage, files, dates, and strings - essential utilities for web development
capitalize the first character of a string
ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES2015 versions.
Strip the final newline character from a string or Uint8Array
Returns true if a string has an extglob.
Matches strings against configurable strings, globs, regular expressions, and/or functions
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
Efficient implementation of Levenshtein algorithm with locale-specific collator support.
Slice a string with ANSI escape codes
Indent each line in a string
Validation utilities.
prelude.ls is a functionally oriented utility library. It is powerful and flexible. Almost all of its functions are curried. It is written in, and is the recommended base library for, LiveScript.
Collection of string utilities. Edit-Distances, Search and Data structures. Offers for example trie, levenshtein distance.
A modular, production-grade utility toolkit for Node.js and TypeScript, designed for robust, scalable applications (including Express-based services). All utilities are tree-shakable and can be imported independently.
Ultra-lightweight string utilities with zero dependencies
Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow
Parse String to Number based on configuration
Utilities for manage arrays, breadcrumb, dom elements, dates, injectors, local storage, login, objects, router animations, router, session storage, strings and translate utilities, encryption, for angular 6+ with ECMAScript 6 - ECMAScript 2015
Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Measure the difference between two strings using the Levenshtein distance algorithm
convert a string to kebab case
A robust HTML entities encoder/decoder with full Unicode support.
Utilities for working with text.
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
Querystringify - Small, simple but powerful query string parser.
ES5 spec-compliant shim for String.prototype.trim
Easily add ANSI colors to your text and symbols in the terminal. A faster drop-in replacement for chalk, kleur and turbocolor (without the dependencies and rendering bugs).
Strip leading whitespace from each line in a string
A JavaScript library for escaping CSS strings and identifiers while generating the shortest possible ASCII-only output.
Compile regular expressions' unicodeSets (v) flag.
Truncate a string to a specific width in the terminal
Strip redundant indentation and indent the string
Normalize a URL
Small footprint URL parser that works seamlessly across Node.js and browser environments
Generate a unique random string
Generate a cryptographically strong random string
A robust & optimized `String.prototype.repeat` polyfill, based on the ECMAScript 6 specification.
Get the shortest leading whitespace from lines in a string
Robustly get an object's own property keys (strings and symbols), including non-enumerables when possible
convert a string to snake case
Detect the indentation of code
A robust polyfill for the `CSS.escape` utility method as defined in CSSOM.
JavaScript utilities for arrays.
Trim newlines from the start and/or end of a string
convert a string to camel case
Simple string utilities (reverse, capitalize, vowels, palindrome)
Determine the East Asian Width of a Unicode character
Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
Get the visual width of the widest line in a string - the number of columns required to display it
Replace search occurrences with a replacement string.
Parse regular expressions' unicodeSets (v) flag.
A robust & optimized `String.prototype.includes` polyfill, based on the ECMAScript 6 specification.
Functions for dealing with a PostgresSQL connection string
Repeat the given string n times. Fastest implementation for repeating a string.
Wildcard matching tools
Check if a string has ANSI escape codes
LZ-based compression algorithm
Fastest Levenshtein distance implementation in JS.
Test if a value is a regular expression string.
Convert between POSIX and Windows paths.
mdast utility to get the plain text content of a node
Tokenize a string into an array of string parts and format identifier objects.
Check if a character is decimal
Test if a value is a string.
a few common utility template tags for ES2015
Insert supplied variable values into a format string.
Create a regular expression from a regular expression string.
Escape a regular expression string or pattern.
Compute ripemd160 of bytes or strings.
Convert object keys to camel case
Check if a character is hexadecimal
Parse and stringify URL query strings
Generate string from a token array by interpolating values.
Get a property from an object using dot (object path) notation.
Utilities for handling Arabic strings such as removing diacritics, tatweel, performing token based search and more.
CommonJS version - The smallest and fastest command-line coloring package on the internet
Math and string formula parser.
Get the gzipped size of a string or buffer
Check if a character is alphabetical
Check if a character is alphanumerical
Convert a string to lowercase.
Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`
micromark utility to decode markdown strings
Convert object keys from camel case
Convert a string to pascal case (upper camelcase).
A collection of string utilities to avoid extra allocations and enable case insensitivity comparisons.
Easy way to split a string on a given character unless it's quoted or escaped.
Formatting Date objects as strings since 2013
Create an array by repeating the given value n times.
Split a string on the first occurance of a given separator
Isomorphic, functional type-checking for Javascript
A module that parses a string as regular expression and returns the parsed value.
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
Get the system locale
Convert a string index to its line and column position
Hashing made simple. Get the hash of a buffer/string/stream/file.
kodmunki Utilities for ECMAScript Kernel
Compare alphanumeric strings the same way a human would, using a natural order algorithm
Mapping between standard locale identifiers and Windows locale identifiers (LCID)
The most efficient JS implementation calculating the Levenshtein distance, i.e. the difference between two strings.
Convert a string to a valid safe filename
Simple micro templating
Remove wrapping quotes from a string.
Functional errors with formatted output
Repeat a string - fast
Convert a value to a ReadableStream
ES2017 spec-compliant String.prototype.padEnd shim.
Terminal string styling with tagged template literals
convert a string to pascal case
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Returns `true` if the value is a primitive.
The smallest and fastest command-line coloring package on the internet
Functions that surround a string with ansicolor codes so it prints in color.
Strip a substring from the start/end of a string
Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream
Remove the trailing spaces from a string.
febs is a useful utilities set in browser
Simple wildcard matching
Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`
Stringify Object as tree structure
hast utility to get the plain-text value of a node
Get the line and column number of a specific character in a string
Check if a string is a URL
The color gray, in ansi.
Escape strings for use as JavaScript string literals
Returns true if a windows file path has invalid characters.
Iterate any iterable JS value. Works robustly in all environments, all versions.
Remove leading indentation from ES6 template literals.
Stringify is to `eval` as `JSON.stringify` is to `JSON.parse`
Pluralize a word
Strip a byte order mark (BOM) from a string.
Serializes any DOM node into a String
Unicode case folding utilities based on the official Unicode Character Database
fast string hashing function
Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.
Newline character converter
A simple string template function based on named or indexed arguments
CodeDungeon Utilities [WIP]
String manipulation extensions for Underscore.js javascript library.
Utilities to convert data into human readable strings.
Parse JavaScript one character at a time to look for snippets in Templates. This is not a validator, it's just designed to allow you to have sections of JavaScript delimited by brackets robustly.
Native JS murmur hash implementation
Elegant spinner for interactive CLI apps
Reduce function calls in a string, using a callback
Check if a character is a whitespace character
hast utility to get the plain-text value of a node according to the `innerText` algorithm
Check if a string is SVG
Find multiple RegExp matches in a string
Beautiful color gradients in terminal output
Regular expression for matching HTML comments
Check if a character is a word character
DOMParser.parseFromString for XML with IE8 fallback
A robust & optimized `String.fromCodePoint` polyfill, based on the ECMAScript 6 specification.
Get or set a deep value using a keypath string. Supports bracket and dot notation
Opinionated HTML formatter focused towards making HTML diffs readable.
Jest snapshot serializer that beautifies HTML.
Remove any existing casing from a string.
Right pad a string with zeros or a specified string. Fastest implementation.
Returns true if a file path does not contain any invalid characters.
The color cyan, in ansi.
Pure-JS printf
Check if a string is an IP address
Slugify a string
Replace search occurrences with a replacement string.
Convert Unicode characters to Latin characters using transliteration
ES2017 spec-compliant String.prototype.padStart shim.
remove diacritics from strings
Returns true if the value passed is all whitespace.
nlcst utility to transform a tree to a string
Convert a string to space case.
The color red, in ansi.
Extensible string utility for converting, identifying and flipping string case
Convert a string to lowercase.
Returns `true` if an array has a glob pattern.
Math and string formula parser.
Common formatter utilities to handle numbers, dates, times, etc.
ES2019 spec-compliant String.prototype.trimLeft shim.
ES2019 spec-compliant String.prototype.trimLeft shim.
String formatting inspired by Python's str.format()
Convert HTML entities to HTML characters, e.g. `>` converts to `>`.
sprintf formatting targetted for CLI
Provide utilities for common tasks such as, file compression, file download, OS integration, exec, etc
Serialises error object to normal object
A robust & optimized `String.prototype.codePointAt` polyfill, based on the ECMAScript 6 specification.
Lightweight format utility for the browser, based on util.format().
Check if a string only contains alphanumeric characters
Returns `true` if a value exists in the given string, array or object.
[](https://www.npmjs.com/package/levenary) [](https://github.com/tanhauhau/levenary/actions)
Convert efficiently index to/from line-column in a string
Returns the first index at which a given element can be found.
Zero-dependency unicode-aware string tools
Write data to a random temporary file
Convert a string to camel case.
strings comparison matchers for chai
Return the first index at which a given element can be found.
Parses a regular expression string and returns a new regular expression.
Check if a string is HTML
Similar to String#trim() but removes only newlines
Get a pretty output of the original, minified, gzipped size of a string or buffer: 130 B → 91 B → 53 B (gzip)
parses number and unit, '20px' into [20, 'px']
Consume a stream of data into a binary Buffer as efficiently as possible