has-ansi
Check if a string has ANSI escape codes
Found 9484 results for string match
Check if a string has ANSI escape codes
Fastest Levenshtein distance implementation in JS.
Regular expression for matching email addresses
Replace search occurrences with a replacement string.
Calculates similarity between two strings
The most efficient JS implementation calculating the Levenshtein distance, i.e. the difference between two strings.
Strip ANSI escape codes from a string
Terminal string styling done right
Escape RegExp special characters
Get the visual width of a string - the number of columns required to display it
Simple wildcard matching
Generate string from a token array by interpolating values.
Test if a value is a string.
Convert between POSIX and Windows paths.
Insert supplied variable values into a format string.
Wordwrap a string with ANSI escape codes
Escape a regular expression string or pattern.
Human-friendly replacements.
Test if a value is 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.
Convert a string to lowercase.
Create a regular expression from a regular expression string.
Allocate a buffer containing a provided string.
Matching IPs using [micromatch][] and [ip-filter][] - glob patterns, RegExp, string or array of globs. Returns matcher function.
Get the native type of a value.
Check if the character represented by a given Unicode code point is fullwidth
Simple string matching / globbing / RegEx matching
Get a stream as a string, Buffer, ArrayBuffer or array
Replace text patterns with applause.
Returns true if a windows file path has invalid characters.
Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`
Strip UTF-8 byte order mark (BOM) from a string
Parse JSON with more helpful errors
Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
Modify strings, generate sourcemaps
Tagged template string regular expression compiler.
Regular expression for matching HTML comments
Detect the indentation of code (commonjs fork)
ANSI escape codes for manipulating the terminal
Check if a string is an IP address
Replaces strings in a stream.
Strip the final newline character from a string or Uint8Array
Returns true if a file path does not contain any invalid characters.
Get all URLs in a string
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.
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
Indent each line in a string
ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES2015 versions.
Returns true if the value passed is all whitespace.
Returns `true` if an array has a glob pattern.
Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Parse String to Number based on configuration
Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow
Customisable string match sorting features
A JavaScript library for escaping CSS strings and identifiers while generating the shortest possible ASCII-only output.
ES5 spec-compliant shim for String.prototype.trim
Strip leading whitespace from each line in a string
Regular expression for matching JavaScript comments
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
A robust HTML entities encoder/decoder with full Unicode support.
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)
Normalize a URL
Small footprint URL parser that works seamlessly across Node.js and browser environments
Truncate a string to a specific width in the terminal
Strip redundant indentation and indent the string
Compile regular expressions' unicodeSets (v) flag.
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 cryptographically strong random string
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.
Generate a unique random string
A robust & optimized `String.prototype.repeat` polyfill, based on the ECMAScript 6 specification.
Parse regular expressions' unicodeSets (v) flag.
Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
LZ-based compression algorithm
Determine the East Asian Width of a Unicode character
Repeat the given string n times. Fastest implementation for repeating a string.
Trim newlines from the start and/or end of a string
Get the visual width of the widest line in a string - the number of columns required to display it
Functions for dealing with a PostgresSQL connection string
Replace text patterns with applause.
The string_decoder module from Node core
mdast utility to get the plain text content of a node
A robust & optimized `String.prototype.includes` polyfill, based on the ECMAScript 6 specification.
Check if a character is alphabetical
a few common utility template tags for ES2015
Convert object keys to camel case
Wildcard matching tools
Parse and stringify URL query strings
Compute ripemd160 of bytes or strings.
Check if a character is decimal
a library that provides a simple and efficient way to match string against glob patterns.
Check if a character is hexadecimal
Get the gzipped size of a string or buffer
Check if a character is alphanumerical
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)'
Human-friendly replacements.
Replace text patterns with applause.
CommonJS version - The smallest and fastest command-line coloring package on the internet
Create an array by repeating the given value n times.
micromark utility to decode markdown strings
Math and string formula parser.
StringScanner performs lexical scanning operations on a string.
Easy way to split a string on a given character unless it's quoted or escaped.
Convert a string to lowercase.
Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`
Convert a string to pascal case (upper camelcase).
Convert object keys from camel case
Strip ANSI color codes from a string. No dependencies.
A module that parses a string as regular expression and returns the parsed value.
Formatting Date objects as strings since 2013
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
Hashing made simple. Get the hash of a buffer/string/stream/file.
Get the system locale
Various helper utilities
Compare alphanumeric strings the same way a human would, using a natural order algorithm
Convert a string index to its line and column position
Simple micro templating
Repeat a string - fast
Convert a string to a valid safe filename
Remove wrapping quotes from a string.
a library for matching human-quality input to a list of potential matches using the Levenshtein distance algorithm
Mapping between standard locale identifiers and Windows locale identifiers (LCID)
Functional errors with formatted output
Convert a value to a ReadableStream
Useful utilities for working with Uint8Array (and Buffer)
ES2017 spec-compliant String.prototype.padEnd shim.
Strip a substring from the start/end of a string
Terminal string styling with tagged template literals
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
The smallest and fastest command-line coloring package on the internet
Returns `true` if the value is a primitive.
Return the first index at which a given element can be found.
Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream
Functions that surround a string with ansicolor codes so it prints in color.
Remove the trailing spaces from a string.
Check if a string is an IP address
A high performance library to match discontinuous strings
String manipulation functions.
Check if a string is a URL
Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`
Escape strings for use as JavaScript string literals
Stringify Object as tree structure
Remove leading indentation from ES6 template literals.
fast string hashing function
Iterate any iterable JS value. Works robustly in all environments, all versions.
Get the line and column number of a specific character in a string
Serializes any DOM node into a String
hast utility to get the plain-text value of a node
String manipulation extensions for Underscore.js javascript library.
Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.
Strip a byte order mark (BOM) from a string.
The color gray, in ansi.
Stringify is to `eval` as `JSON.stringify` is to `JSON.parse`
A simple string template function based on named or indexed arguments
Elegant spinner for interactive CLI apps
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
hast utility to get the plain-text value of a node according to the `innerText` algorithm
Check if a character is a whitespace character
Check if a string is SVG
Check if a character is a word character
Handlebars + Helpers = Fumanchu
Beautiful color gradients in terminal output
Right pad a string with zeros or a specified string. Fastest implementation.
Jest snapshot serializer that beautifies HTML.
DOMParser.parseFromString for XML with IE8 fallback
Opinionated HTML formatter focused towards making HTML diffs readable.
Reduce function calls in a string, using a callback
ES2017 spec-compliant String.prototype.padStart shim.
Convert Unicode characters to Latin characters using transliteration
Slugify a string
Various helper utilities for working with buffers and binary data
Pure-JS printf
This package includes the [core-js](https://github.com/zloirock/core-js) polyfill for `String#replaceAll`, along with TypeScript typings.
A robust & optimized `String.fromCodePoint` polyfill, based on the ECMAScript 6 specification.
Remove any existing casing from a string.
sprintf parser and basic formatter
The color cyan, in ansi.
ES2019 spec-compliant String.prototype.trimLeft shim.
nlcst utility to transform a tree to a string
Convert a string to space case.
The color red, in ansi.
Ukkonens approximate string matching algorithm for finding edit distance similar to Levenshtein
Extensible string utility for converting, identifying and flipping string case
remove diacritics from strings
The most efficient JS implementation calculating the Levenshtein distance, i.e. the difference between two strings.
ES2019 spec-compliant String.prototype.trimLeft shim.
String encoding utilitlies extracted from TweetNaCl.js
Find lexicographical points between strings
Convert HTML entities to HTML characters, e.g. `>` converts to `>`.
String formatting inspired by Python's str.format()
sprintf formatting targetted for CLI
Math and string formula parser.
Run replace on a string and update it asynchronous
Build and evaluate JavaScript strings safely via tagged template literals
Serialises error object to normal object
Lightweight format utility for the browser, based on util.format().
A robust & optimized `String.prototype.codePointAt` polyfill, based on the ECMAScript 6 specification.
Trim whitespace characters from the beginning and end of a string.
Check if a string only contains alphanumeric characters
Convert efficiently index to/from line-column in a string
Convert a string to camel case.
Similar to String#trim() but removes only newlines
Write data to a random temporary file
strings comparison matchers for chai
Zero-dependency unicode-aware string tools
Check if a string is HTML
Get a pretty output of the original, minified, gzipped size of a string or buffer: 130 B → 91 B → 53 B (gzip)
Pad strings to a given length
Base64 and base64url to string or arraybuffer, and back. Node, Deno or browser.
The fast way to check if a string is blank
Consume a stream of data into a binary Buffer as efficiently as possible
Convert HTML/XML source code or DOM nodes to React elements
String matcher that output the input string replacing the match.
Iterator over lines in a string
parses number and unit, '20px' into [20, 'px']
A pure (functional) version of Joshaven Potter's string_score package which doesn't alter the String prototype.
Returns true if the given number is odd, and is an integer that does not exceed the JavaScript MAXIMUM_SAFE_INTEGER.
Parse parentheses from a string
Convert a camelized/dasherized/underscored string into a humanized one: `fooBar-Baz_Faz` → `Foo bar baz faz`
Get the length of unicode strings
A robust & character encoding–agnostic JavaScript implementation of the `Quoted-Printable` content transfer encoding as defined by RFC 2045.
Get a property from an object using dot (object path) notation.
Escape a string for use in AppleScript
Contains some util methods for converting numbers into words, ordinal words and ordinal numbers.
Test if an array-like value contains a search value.
Tagged template literal for Sanity.io GROQ-queries
Split string by any separator excluding brackets, quotes and escaped characters
slugifies even utf-8 chars!
Regular expression for matching URLs
parse a css color string
alters a string by replacing multiple range fragments in one fast pass
Convert a string into a stream (streams2)
A fully Unicode-aware string reverser written in JavaScript.
A library for finding the most similar word from a list of words, supporting Japanese (including kanji). / 最も似た単語を単語群から検索する日本語(漢字含む)対応のライブラリ
Converts a Buffer/String into a readable stream
String comparison in length constant time
Simple implmentation of Stream.Readable and Stream.Writable holding the data in memory.
A collection of personal utilities to live a happier life
Left pad a string with zeros or a specified string. Fastest implementation.
Regular expression matching for email addresses. Maintained, configurable, more accurate, and browser-friendly alternative to email-regex. Works in Node v14+ and browsers. Made for Spam Scanner and Forward Email.
small function to append a query string to a URL