@stdlib/assert-contains
Test if an array-like value contains a search value.
Found 9801 results for string contains
Test if an array-like value contains a search value.
Check if a string only contains alphanumeric characters
Contains some util methods for converting numbers into words, ordinal words and ordinal numbers.
🗣️ NPM Package to check if string contains vowels
Throws an error if a string is found.
string contains methods that aren't included in the vanilla JavaScript string such as escaping html, decoding html entities, stripping tags, etc.
qsu is a utility library that contains useful and frequently used functions. Start with your preferred language and the modern development environment.
is-japanese is a library helps you to check if a string only contains Japanese characters.
The string_decoder module from Node core
Contains some util methods for converting numbers into words, ordinal words and ordinal numbers.
Functions for dealing with a PostgresSQL connection string
A plain text serializer for Slate editors.
An easy, semantic and reliable way to split a string into characters in JavaScript, even when it contains emojis, flags and diacritics
A simple validation to check if a string or array contains a know first name
ANSI escape codes for styling strings in the terminal
Strip ANSI escape codes from a string
Regular expression for matching ANSI escape codes
Get the visual width of a string - the number of columns required to display it
This is a runtime library for [TypeScript](https://www.typescriptlang.org/) that contains all of the TypeScript helper functions.
Terminal string styling done right
This is a runtime library for [TypeScript](https://www.typescriptlang.org/) that contains all of the TypeScript helper functions.
Wordwrap a string with ANSI escape codes
Escape RegExp special characters
Test whether a string contains only numeric digits.
contains some for converting a number to russian words
Get a stream as a string, Buffer, ArrayBuffer or array
React library to safely render HTML, filter attributes, autowrap text, autolink, and much more.
Check if the character represented by a given Unicode code point is fullwidth
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
Get the native type of a value.
Modify strings, generate sourcemaps
Strip UTF-8 byte order mark (BOM) from a string
Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
Parse JSON with more helpful errors
Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`
Matches strings against configurable strings, globs, regular expressions, and/or functions
This is a runtime library for [TypeScript](https://www.typescriptlang.org/) that contains all of the TypeScript helper functions.
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
Returns true if a string has an extglob.
ANSI escape codes for manipulating the terminal
Efficient implementation of Levenshtein algorithm with locale-specific collator support.
Strip the final newline character from a string or Uint8Array
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.
Test whether a string contains only white space characters.
Indent each line in a string
A JavaScript library for escaping CSS strings and identifiers while generating the shortest possible ASCII-only output.
ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES2015 versions.
Slice a string with ANSI escape codes
Strip leading whitespace from each line in a string
Parse String to Number based on configuration
Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
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
ES5 spec-compliant shim for String.prototype.trim
Robustly get an object's own property keys (strings and symbols), including non-enumerables when possible
Truncate a string to a specific width in the terminal
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).
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
Strip redundant indentation and indent the string
Querystringify - Small, simple but powerful query string parser.
Get the shortest leading whitespace from lines in a string
Determine the East Asian Width of a Unicode character
A robust HTML entities encoder/decoder with full Unicode support.
Small footprint URL parser that works seamlessly across Node.js and browser environments
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.
LZ-based compression algorithm
A robust & optimized `String.prototype.repeat` polyfill, based on the ECMAScript 6 specification.
Compile regular expressions' unicodeSets (v) flag.
Normalize a URL
Check if a character is decimal
mdast utility to get the plain text content of a node
Check if a character is alphabetical
Parse regular expressions' unicodeSets (v) flag.
CommonJS version - The smallest and fastest command-line coloring package on the internet
Generate a cryptographically strong random string
Generate a unique random string
micromark utility to decode markdown strings
A robust & optimized `String.prototype.includes` polyfill, based on the ECMAScript 6 specification.
Check if a character is hexadecimal
Detect the indentation of code
Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.
Fastest Levenshtein distance implementation in JS.
Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`
Check if a character is alphanumerical
Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
Repeat the given string n times. Fastest implementation for repeating a string.
Trim newlines from the start and/or end of a string
a few common utility template tags for ES2015
Wildcard matching tools
Parse and stringify URL query strings
Check if a string has ANSI escape codes
Various helper utilities
Convert object keys to camel case
Useful utilities for working with Uint8Array (and Buffer)
Terminal string styling with tagged template literals
Compute ripemd160 of bytes or strings.
Get the gzipped size of a string or buffer
A TypeScript port of the Java StringTemplate 4 library
Create an array by repeating the given value n times.
The smallest and fastest command-line coloring package on the internet
Split a string on the first occurance of a given separator
Math and string formula parser.
string contains methods that aren't included in the vanilla JavaScript string such as escaping html, decoding html entities, stripping tags, etc.
Convert object keys from camel case
Isomorphic, functional type-checking for Javascript
Easy way to split a string on a given character unless it's quoted or escaped.
Various helper utilities for working with buffers and binary data
Colorized string diff ideal for text/code that spans through multiple lines
Convert a string to pascal case (upper camelcase).
Hashing made simple. Get the hash of a buffer/string/stream/file.
Formatting Date objects as strings since 2013
Functional errors with formatted output
A module that parses a string as regular expression and returns the parsed value.
Convert a string index to its line and column position
Get the system locale
Stringify Object as tree structure
Convert a string to a valid safe filename
Simple micro templating
A tiny (305B) browser utility for stringifying a query Object.
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
The most efficient JS implementation calculating the Levenshtein distance, i.e. the difference between two strings.
Mapping between standard locale identifiers and Windows locale identifiers (LCID)
Remove wrapping quotes from a string.
Repeat a string - fast
Remove the trailing spaces from a string.
Test whether a string contains only alphanumeric characters.
Functions that surround a string with ansicolor codes so it prints in color.
Compare alphanumeric strings the same way a human would, using a natural order algorithm
ES2017 spec-compliant String.prototype.padEnd shim.
hast utility to get the plain-text value of a node according to the `innerText` algorithm
Simple wildcard matching
Returns `true` if the value is a primitive.
Math and string formula parser.
The [strman](https://github.com/dleitee/strman) method `contains` exported as a [Node.js](https://nodejs.org/) module.
Convert a value to a ReadableStream
Strip a substring from the start/end of a string
Strip a byte order mark (BOM) from a string.
fast string hashing function
Remove leading indentation from ES6 template literals.
The string_decoder module from Node core
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Fuzzy filtering and string similarity scoring - compatible with fuzzaldrin
hast utility to get the plain-text value of a node
Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream
UTF-safe string operations
Get the line and column number of a specific character in a string
A robust & optimized `String.prototype.startsWith` polyfill, based on the ECMAScript 6 specification.
Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.
Native JS murmur hash implementation
Check if a string is a URL
Escape strings for use as JavaScript string literals
String manipulation extensions for Underscore.js javascript library.
Advanced URL Connection String parser + generator.
A simple string template function based on named or indexed arguments
Stringify is to `eval` as `JSON.stringify` is to `JSON.parse`
A fast function for calculating the visual width of a string once printed to the terminal.
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.
A fast function for calculating where a string should be truncated, given an optional width limit and an ellipsis string.
DOMParser.parseFromString for XML with IE8 fallback
Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`
Pluralize a word
Serializes any DOM node into a String
Returns true if a windows file path has invalid characters.
Elegant spinner for interactive CLI apps
Skiff is a privacy-first, end-to-end encrypted workspace with Mail, Calendar, Pages, and Drive product. Sign up for a free Skiff Mail account at [skiff.com](https://skiff.com). This monorepo contains all Skiff apps, libraries, and more. You can sign up, u
The color gray, in ansi.
Convert Unicode characters to Latin characters using transliteration
Slugify a string
Regular expression for matching email addresses
Simple Module for generating Random Strings
nlcst utility to transform a tree to a string
Beautiful color gradients in terminal output
Check if a string is an IP address
Iterate any iterable JS value. Works robustly in all environments, all versions.
Jest snapshot serializer that beautifies HTML.
Right pad a string with zeros or a specified string. Fastest implementation.
remove diacritics from strings
Reduce function calls in a string, using a callback
Opinionated HTML formatter focused towards making HTML diffs readable.
Find multiple RegExp matches in a string
Check if a string is SVG
Pure-JS printf
Newline character converter
Check if a character is a whitespace character
Custom formatter that converts any string into Title Case
Regular expression for matching HTML comments
Check if a character is a word character
A robust & optimized `String.fromCodePoint` polyfill, based on the ECMAScript 6 specification.
A robust & optimized `String.prototype.codePointAt` polyfill, based on the ECMAScript 6 specification.
Extensible string utility for converting, identifying and flipping string case
Returns true if a file path does not contain any invalid characters.
ES2017 spec-compliant String.prototype.padStart shim.
Encode & decode strings, bytes, and integers to Base62
Check if array contains unique stringified values
Regular expression for matching JavaScript comments
Remove any existing casing from a string.
The color red, in ansi.
Convert a string to space case.
The color cyan, in ansi.
The fast way to check if a string is blank
String encoding utilitlies extracted from TweetNaCl.js
Returns whether a string contains only emojis or not.
sprintf parser and basic formatter
Returns true if the value passed is all whitespace.
parses number and unit, '20px' into [20, 'px']
ES2019 spec-compliant String.prototype.trimLeft shim.
Convert HTML entities to HTML characters, e.g. `>` converts to `>`.
ES2019 spec-compliant String.prototype.trimLeft shim.
String formatting inspired by Python's str.format()
Split string by any separator excluding brackets, quotes and escaped characters
Parse parentheses from a string
Lightweight format utility for the browser, based on util.format().
Tagged template literal for Sanity.io GROQ-queries
[](https://www.npmjs.com/package/levenary) [](https://github.com/tanhauhau/levenary/actions)
Returns `true` if an array has a glob pattern.
Replaces strings in a stream.
Base64 and base64url to string or arraybuffer, and back. Node, Deno or browser.
sprintf formatting targetted for CLI
Convert efficiently index to/from line-column in a string
Zero-dependency unicode-aware string tools
escape Markdown control characters
Write data to a random temporary file
parse a css color string
slugifies even utf-8 chars!
Similar to String#trim() but removes only newlines
Returns `true` if a value exists in the given string, array or object.
Serialises error object to normal object
Check if a string is HTML
Replace search occurrences with a replacement string.
Convert between POSIX and Windows paths.
Convert HTML/XML source code or DOM nodes to React elements
Checks if a string or an array contains a number
Convert a string to camel case.
Test if a value is a string.
Escape a regular expression string or pattern.
Insert supplied variable values into a format string.
Get a pretty output of the original, minified, gzipped size of a string or buffer: 130 B → 91 B → 53 B (gzip)
Tokenize a string into an array of string parts and format identifier objects.
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.
Pad strings to a given length
Left pad a string with zeros or a specified string. Fastest implementation.
Escape RegExp special characters
Test if a value is a regular expression string.
Generate string from a token array by interpolating values.
Predicate that returns true if collection contains unique values.
Embed data in other data and easily extract it when needed
Convert a string into a stream (streams2)
Convert a string to lowercase.