match-casing
Match the case of `value` to that of `base`
Found 9479 results for string match
Match the case of `value` to that of `base`
Match substrings on the left or right of a given index, ignoring whitespace
JavaScript replaceLast function - Replaces last match for pattern in string with replacement
Get all the matches for a regular expression in a string.
A regex to match astral symbols that supports unicode strings.
match-string is a javascript function who return a regexp for match a string with all of his accents possible
Replace strings in webpack modules, with configurable apply-stage and match-count requirements.
replace strings that match a particular pattern with a React Component, recursively
Generate a random string match a given regular expression, suitable for mocking strings.
Get the line number for each regex match found in a string.
Regular expression for matching ANSI escape codes
Advanced RegExp assertions for Chai.js
match the string
Validates given IPs (IPv4 and IPv6) using [micromatch][] - glob patterns, RegExp, string or array of globs. If match returns the IP, otherwise null.
A collection of string matching algorithms built with React Select in mind
Convert strings to match a pattern
Matches strings against configurable strings, globs, regular expressions, and/or functions
Find multiple RegExp matches in a string
a search util that gives match strength of a query against a sentence
`String.prototype.matchAll` ponyfill.
A React component for finding matches within a split string.
easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings.
Match Emoji combinations according to unicode emoji specification
ANSI escape codes for styling strings in the terminal
The string_decoder module from Node core
Replace all substring matches in a string
Replace search occurrences with a replacement string.
Detect the indentation of code
String#replace for React components
Split a string on the first occurance of a given separator
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
Returns true if a string has an extglob.
Fuzzy filtering and string similarity scoring - compatible with fuzzaldrin
Measure the difference between two strings using the Levenshtein distance algorithm
Pluralize a word
Asynchronous String.prototype.replace()
A function to extract any colors from a string
Yet another javascript fuzzy matching library
String Tokenization Library for JavaScript
Fastest Levenshtein distance implementation in JS.
Check if a string has ANSI escape codes
Newline character converter
Replace search occurrences with a replacement string.
Calculates similarity between two strings
Regular expression for matching email addresses
Strip ANSI escape codes from a string
The most efficient JS implementation calculating the Levenshtein distance, i.e. the difference between two strings.
Terminal string styling done right
Get the visual width of a string - the number of columns required to display it
Escape RegExp special characters
Simple wildcard matching
Test if a value is a string.
Convert between POSIX and Windows paths.
Insert supplied variable values into a format string.
Test if a value is a regular expression string.
Escape a regular expression string or pattern.
Generate string from a token array by interpolating values.
Simple string matching / globbing / RegEx matching
Wordwrap a string with ANSI escape codes
Human-friendly replacements.
Create a regular expression from a regular expression string.
Tokenize a string into an array of string parts and format identifier objects.
Return a regular expression to parse a regular expression string.
Get the native type of a value.
Matching IPs using [micromatch][] and [ip-filter][] - glob patterns, RegExp, string or array of globs. Returns matcher function.
Convert a string to lowercase.
Allocate a buffer containing a provided string.
Returns true if a windows file path has invalid characters.
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
Replace text patterns with applause.
Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`
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.
Regular expression for matching HTML comments
Modify strings, generate sourcemaps
Detect the indentation of code (commonjs fork)
ANSI escape codes for manipulating the terminal
Tagged template string regular expression compiler.
Returns true if a file path does not contain any invalid characters.
Replaces strings in a stream.
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
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
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.
Efficient implementation of Levenshtein algorithm with locale-specific collator support.
Check if a string is an IP address
Get all URLs in a string
Indent each line in a string
Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow
Returns true if the value passed is all whitespace.
Returns `true` if an array has a glob pattern.
Customisable string match sorting features
Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
ES5 spec-compliant shim for String.prototype.trim
Parse String to Number based on configuration
Regular expression for matching JavaScript comments
A robust HTML entities encoder/decoder with full Unicode support.
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.
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).
[](https://www.npmjs.com/package/levenary) [](https://github.com/tanhauhau/levenary/actions)
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.
Normalize a URL
Compile regular expressions' unicodeSets (v) flag.
Strip redundant indentation and indent the string
Generate a unique random string
Small footprint URL parser that works seamlessly across Node.js and browser environments
A robust & optimized `String.prototype.repeat` polyfill, based on the ECMAScript 6 specification.
Generate a cryptographically strong random string
Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
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
Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.
A robust polyfill for the `CSS.escape` utility method as defined in CSSOM.
Trim newlines from the start and/or end of a string
Repeat the given string n times. Fastest implementation for repeating a string.
Get the visual width of the widest line in a string - the number of columns required to display it
Determine the East Asian Width of a Unicode character
A robust & optimized `String.prototype.includes` polyfill, based on the ECMAScript 6 specification.
mdast utility to get the plain text content of a node
Wildcard matching tools
Parse regular expressions' unicodeSets (v) flag.
Replace text patterns with applause.
Functions for dealing with a PostgresSQL connection string
The string_decoder module from Node core
LZ-based compression algorithm
Check if a character is decimal
a few common utility template tags for ES2015
Convert object keys to camel case
Parse and stringify URL query strings
a library that provides a simple and efficient way to match string against glob patterns.
Check if a character is hexadecimal
Compute ripemd160 of bytes or strings.
Get the gzipped size of a string or buffer
Unpacks the content found within a text, delimited by an opening char and a closing char, e.g., 'Can extract (only the content found here within these parentheses)'
Check if a character is alphanumerical
CommonJS version - The smallest and fastest command-line coloring package on the internet
Math and string formula parser.
Easy way to split a string on a given character unless it's quoted or escaped.
Check if a character is alphabetical
Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`
Convert a string to pascal case (upper camelcase).
Strip ANSI color codes from a string. No dependencies.
Convert object keys from camel case
Replace text patterns with applause.
micromark utility to decode markdown strings
Create an array by repeating the given value n times.
Convert a string to lowercase.
Formatting Date objects as strings since 2013
A module that parses a string as regular expression and returns the parsed value.
Get the system locale
StringScanner performs lexical scanning operations on a string.
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
Hashing made simple. Get the hash of a buffer/string/stream/file.
Isomorphic, functional type-checking for Javascript
Convert a string index to its line and column position
Human-friendly replacements.
Mapping between standard locale identifiers and Windows locale identifiers (LCID)
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
a library for matching human-quality input to a list of potential matches using the Levenshtein distance algorithm
Various helper utilities
Repeat a string - fast
Useful utilities for working with Uint8Array (and Buffer)
Functional errors with formatted output
Convert a value to a ReadableStream
ES2017 spec-compliant String.prototype.padEnd shim.
Functions that surround a string with ansicolor codes so it prints in color.
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
The smallest and fastest command-line coloring package on the internet
Return the first index at which a given element can be found.
Remove the trailing spaces from a string.
Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream
Strip a substring from the start/end of a string
A high performance library to match discontinuous strings
Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`
Check if a string is an IP address
Stringify Object as tree structure
hast utility to get the plain-text value of a node
The color gray, in ansi.
Escape strings for use as JavaScript string literals
Check if a string is a URL
String manipulation functions.
Iterate any iterable JS value. Works robustly in all environments, all versions.
Serializes any DOM node into a String
Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.
Remove leading indentation from ES6 template literals.
Strip a byte order mark (BOM) from a string.
fast string hashing function
A simple string template function based on named or indexed arguments
Get the line and column number of a specific character in a string
Stringify is to `eval` as `JSON.stringify` is to `JSON.parse`
String manipulation extensions for Underscore.js javascript library.
Check if a character is a whitespace character
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
Check if a string is SVG
Check if a character is a word character
hast utility to get the plain-text value of a node according to the `innerText` algorithm
Reduce function calls in a string, using a callback
Handlebars + Helpers = Fumanchu
Beautiful color gradients in terminal output
Opinionated HTML formatter focused towards making HTML diffs readable.
DOMParser.parseFromString for XML with IE8 fallback
A robust & optimized `String.fromCodePoint` polyfill, based on the ECMAScript 6 specification.
Pure-JS printf
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.
sprintf parser and basic formatter
ES2019 spec-compliant String.prototype.trimLeft shim.
Convert Unicode characters to Latin characters using transliteration
This package includes the [core-js](https://github.com/zloirock/core-js) polyfill for `String#replaceAll`, along with TypeScript typings.
Slugify a string
The color cyan, in ansi.
ES2017 spec-compliant String.prototype.padStart shim.
ES2019 spec-compliant String.prototype.trimLeft shim.
remove diacritics from strings
The color red, in ansi.
Extensible string utility for converting, identifying and flipping string case
Ukkonens approximate string matching algorithm for finding edit distance similar to Levenshtein
The most efficient JS implementation calculating the Levenshtein distance, i.e. the difference between two strings.
String encoding utilitlies extracted from TweetNaCl.js
Convert a string to space case.
nlcst utility to transform a tree to a string
Various helper utilities for working with buffers and binary data
sprintf formatting targetted for CLI
Convert HTML entities to HTML characters, e.g. `>` converts to `>`.
Math and string formula parser.
String formatting inspired by Python's str.format()
Check if a string only contains alphanumeric characters
Serialises error object to normal object
A robust & optimized `String.prototype.codePointAt` polyfill, based on the ECMAScript 6 specification.
Find lexicographical points between strings
Run replace on a string and update it asynchronous
Convert efficiently index to/from line-column in a string
Similar to String#trim() but removes only newlines
Lightweight format utility for the browser, based on util.format().
Build and evaluate JavaScript strings safely via tagged template literals
Write data to a random temporary file