ansi-styles
ANSI escape codes for styling strings in the terminal
Found 9481 results for string functions
ANSI escape codes for styling strings in the terminal
Provide some useful functions for strings
Strip ANSI escape codes from a string
Here are some handy tagged template functions to make your ES6 template literals work better!
Regular expression for matching ANSI escape codes
Terminal string styling done right
A collection of helpful utility functions for common JavaScript development and browser DOM manipulation tasks
Get the visual width of a string - the number of columns required to display it
The ultimate JavaScript string library
A collection of functions for frontend development
This project is ment to be used with Microsoft Azure Functions. This simple wrapper makes it easier to work with Azure Functions since common HTTP methods are wrapped to individual function calls within a specfic Azure Function. And in addition a function
Escape RegExp special characters
Wordwrap a string with ANSI escape codes
This is a runtime library for [TypeScript](https://www.typescriptlang.org/) that contains all of the TypeScript helper functions.
Easily apply other module's string transform functions to stdio and text files.
Get the native type of a value.
The string_decoder module from Node core
Check if the character represented by a given Unicode code point is fullwidth
Strip UTF-8 byte order mark (BOM) from a string
Parse JSON with more helpful errors
Extensible string utility for converting, identifying and flipping string case
Get a stream as a string, Buffer, ArrayBuffer or array
Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`
Modify strings, generate sourcemaps
String utility functions
ANSI escape codes for manipulating the terminal
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
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
This is a runtime library for [TypeScript](https://www.typescriptlang.org/) that contains all of the TypeScript helper functions.
Returns true if a string has an extglob.
Strip the final newline character from a string or Uint8Array
ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES2015 versions.
Slice a string with ANSI escape codes
A collection of common string functions.
Fuzzy string matching algorithms and utilities, port of the TheFuzz Python library.
Efficient implementation of Levenshtein algorithm with locale-specific collator support.
Indent each line in a string
Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow
Measure the difference between two strings using the Levenshtein distance algorithm
Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Standalone version of lodash string trim functions
ES5 spec-compliant shim for String.prototype.trim
Parse String to Number based on configuration
String Comparison Functions
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
A Node.js module offering various string manipulation functions for capitalization, initial capitalization of words, and specific casing of text.
A collection of utility functions to manipulate string in javascript and typescript
Utility Functions for all Development Purpose
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).
A robust HTML entities encoder/decoder with full Unicode support.
Querystringify - Small, simple but powerful query string parser.
Truncate a string to a specific width in the terminal
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.
Small footprint URL parser that works seamlessly across Node.js and browser environments
Normalize a URL
Strip redundant indentation and indent the string
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
Generate a unique random string
Generate a cryptographically strong random string
Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
A robust & optimized `String.prototype.repeat` polyfill, based on the ECMAScript 6 specification.
Detect the indentation of code
Get the visual width of the widest line in a string - the number of columns required to display it
A robust polyfill for the `CSS.escape` utility method as defined in CSSOM.
Repeat the given string n times. Fastest implementation for repeating a string.
Trim newlines from the start and/or end of a string
Fastest Levenshtein distance implementation in JS.
Determine the East Asian Width of a Unicode character
mdast utility to get the plain text content of a node
Check if a string has ANSI escape codes
A robust & optimized `String.prototype.includes` polyfill, based on the ECMAScript 6 specification.
Parse regular expressions' unicodeSets (v) flag.
Check if a character is decimal
LZ-based compression algorithm
Wildcard matching tools
Parse and stringify URL query strings
Convert object keys to camel case
Package of optimised react components and javascript functions for developers ♫♪
Compute ripemd160 of bytes or strings.
CommonJS version - The smallest and fastest command-line coloring package on the internet
Math and string formula parser.
Check if a character is hexadecimal
Helper functions for handling Regular Expressions and parsing user input as Regular Expressions
Easy way to split a string on a given character unless it's quoted or escaped.
Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`
Get the gzipped size of a string or buffer
Check if a character is alphabetical
Check if a character is alphanumerical
micromark utility to decode markdown strings
Convert a string to pascal case (upper camelcase).
Convert object keys from camel case
Create an array by repeating the given value n times.
A module that parses a string as regular expression and returns the parsed value.
Split a string on the first occurance of a given separator
Formatting Date objects as strings since 2013
Zero-dependency minimal package (two functions) to provide better-readable (albeit more verbose) wrapper over JS default `Array.sort()`. Fully typed.
provides functions for comparing and calculating the similarity between two strings using various methods.
Hashing made simple. Get the hash of a buffer/string/stream/file.
Zero-dependency minimal package (two functions) to provide better-readable (albeit more verbose) wrapper over JS default `Array.sort()`. Fully typed.
Get the system locale
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
Isomorphic, functional type-checking for Javascript
A Node.js library offering functions to check variable types, including arrays, objects, strings, numbers, booleans, and undefined values.
Mapping between standard locale identifiers and Windows locale identifiers (LCID)
Convert a string index to its line and column position
Simple micro templating
Convert a string to a valid safe filename
Remove wrapping quotes from a string.
Compare alphanumeric strings the same way a human would, using a natural order algorithm
The most efficient JS implementation calculating the Levenshtein distance, i.e. the difference between two strings.
Useful utilities for working with Uint8Array (and Buffer)
Functional errors with formatted output
Convert a value to a ReadableStream
Repeat a string - fast
ES2017 spec-compliant String.prototype.padEnd shim.
Returns `true` if the value is a primitive.
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Terminal string styling with tagged template literals
Functions for working with query strings.
Remove the trailing spaces from a string.
The smallest and fastest command-line coloring package on the internet
Strip a substring from the start/end of a string
Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream
Simple wildcard matching
A utility library with math and string functions supporting both ESM and CommonJS
Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`
Stringify Object as tree structure
Check if a string is a URL
Escape strings for use as JavaScript string literals
hast utility to get the plain-text value of a node
Remove leading indentation from ES6 template literals.
Japanese Character Optimizer.
Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.
The color gray, in ansi.
Iterate any iterable JS value. Works robustly in all environments, all versions.
Pluralize a word
Returns true if a windows file path has invalid characters.
Serializes any DOM node into a String
Strip a byte order mark (BOM) from a string.
fast string hashing function
Get the line and column number of a specific character in a string
Newline character converter
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).
Stringify is to `eval` as `JSON.stringify` is to `JSON.parse`
A simple string template function based on named or indexed arguments
string contains methods that aren't included in the vanilla JavaScript string such as escaping html, decoding html entities, stripping tags, etc.
Check if a character is a whitespace character
A comprehensive TypeScript utility library providing helper functions for arrays, objects, strings, and more
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.
Stringifies function's parameters definition
Elegant spinner for interactive CLI apps
A TypeScript utility library with functions for string manipulation and mathematical operations
Native JS murmur hash implementation
A hub of numerous functions.
Check if a string is SVG
Regular expression for matching HTML comments
hast utility to get the plain-text value of a node according to the `innerText` algorithm
Check if a character is a word character
Reduce function calls in a string, using a callback
A comprehensive TypeScript utility library with 250+ functions across 7 categories
Find multiple RegExp matches in a string
DOMParser.parseFromString for XML with IE8 fallback
Jest snapshot serializer that beautifies HTML.
Beautiful color gradients in terminal output
Opinionated HTML formatter focused towards making HTML diffs readable.
Pure-JS printf
Returns true if a file path does not contain any invalid characters.
A robust & optimized `String.fromCodePoint` polyfill, based on the ECMAScript 6 specification.
Convert Unicode characters to Latin characters using transliteration
functions for validation
A module that formats a string based on a pattern
Right pad a string with zeros or a specified string. Fastest implementation.
Remove any existing casing from a string.
asr2js and js2asr converter android string resource utils
sprintf parser and basic formatter
ES2019 spec-compliant String.prototype.trimLeft shim.
Slugify a string
remove diacritics from strings
The color cyan, in ansi.
ES2017 spec-compliant String.prototype.padStart shim.
Check if a string is an IP address
The color red, in ansi.
Utility functions to convert strings to camelCase, snake_case, and kebab-case.
Collection of utility functions and helpers, designed to speed up development across SalesPark projects. Includes common helpers, reusable patterns, and extended functions.
ES2019 spec-compliant String.prototype.trimLeft shim.
Convert a string to space case.
Returns `true` if an array has a glob pattern.
nlcst utility to transform a tree to a string
Various helper utilities for working with buffers and binary data
Returns true if the value passed is all whitespace.
sprintf formatting targetted for CLI
Math and string formula parser.
String formatting inspired by Python's str.format()
Convert HTML entities to HTML characters, e.g. `>` converts to `>`.
🦅 cli syntax highlighting: any function - any object - 176 languages
Check if a string only contains alphanumeric characters
Lightweight format utility for the browser, based on util.format().
Convert efficiently index to/from line-column in a string
[](https://www.npmjs.com/package/levenary) [](https://github.com/tanhauhau/levenary/actions)
Serialises error object to normal object
A robust & optimized `String.prototype.codePointAt` polyfill, based on the ECMAScript 6 specification.
Similar to String#trim() but removes only newlines
Write data to a random temporary file
Convert a string to camel case.
Unicode character information library.
Zero-dependency unicode-aware string tools
strings comparison matchers for chai
Check if a string is HTML
Convert a string to its numerical value (float or integer)
Replace search occurrences with a replacement string.
Get a pretty output of the original, minified, gzipped size of a string or buffer: 130 B → 91 B → 53 B (gzip)
Convert between POSIX and Windows paths.
parses number and unit, '20px' into [20, 'px']
Test if a value is a string.
Test if a value is a regular expression string.
Insert supplied variable values into a format string.
Escape a regular expression string or pattern.
Returns true if the given number is odd, and is an integer that does not exceed the JavaScript MAXIMUM_SAFE_INTEGER.
Create a regular expression from a regular expression string.
Library of miscellaneous formatting and helper functions
Convert HTML/XML source code or DOM nodes to React elements
Convert a camelized/dasherized/underscored string into a humanized one: `fooBar-Baz_Faz` → `Foo bar baz faz`
Consume a stream of data into a binary Buffer as efficiently as possible
Regular expression for matching URLs
Base64 and base64url to string or arraybuffer, and back. Node, Deno or browser.
Get a property from an object using dot (object path) notation.
Escape a string for use in AppleScript
Tokenize a string into an array of string parts and format identifier objects.
easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings.
Iterator over lines in a string
Get the length of unicode strings
Tagged template literal for Sanity.io GROQ-queries
Full floating point big number library using regular Javascript string
slugifies even utf-8 chars!
Parse parentheses from a string
The fast way to check if a string is blank
Generate string from a token array by interpolating values.
Pad strings to a given length
A robust & character encoding–agnostic JavaScript implementation of the `Quoted-Printable` content transfer encoding as defined by RFC 2045.
String functions
Allocate a buffer containing a provided string.
Split string by any separator excluding brackets, quotes and escaped characters
Strip ANSI color codes from a string. No dependencies.
Contains some util methods for converting numbers into words, ordinal words and ordinal numbers.
Return a regular expression to parse a regular expression string.
Left pad a string with zeros or a specified string. Fastest implementation.