@stdlib/assert-contains
Test if an array-like value contains a search value.
Found 9492 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.
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.
A simple validation to check if a string or array contains a know first name
Contains some util methods for converting numbers into words, ordinal words and ordinal numbers.
The string_decoder module from Node core
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
This is a runtime library for [TypeScript](https://www.typescriptlang.org/) that contains all of the TypeScript helper functions.
This is a runtime library for [TypeScript](https://www.typescriptlang.org/) that contains all of the TypeScript helper functions.
ANSI escape codes for styling strings in the terminal
Strip ANSI escape codes from a string
Terminal string styling done right
Regular expression for matching ANSI escape codes
Get the visual width of a string - the number of columns required to display it
Wordwrap a string with ANSI escape codes
Escape RegExp special characters
Strip UTF-8 byte order mark (BOM) from a string
Check if the character represented by a given Unicode code point is fullwidth
Parse JSON with more helpful errors
Get a stream as a string, Buffer, ArrayBuffer or array
Get the native type of a value.
React library to safely render HTML, filter attributes, autowrap text, autolink, and much more.
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.
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
Strip the final newline character from a string or Uint8Array
ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES2015 versions.
Check if a string contains only numeric emoji characters (0️⃣-9️⃣)
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
Modify strings, generate sourcemaps
Matches strings against configurable strings, globs, regular expressions, and/or functions
Returns true if a string has an extglob.
Efficient implementation of Levenshtein algorithm with locale-specific collator support.
Indent each line 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.
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.
Check if array contains unique stringified values
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
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
Compile regular expressions' unicodeSets (v) flag.
Parse String to Number based on configuration
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
Truncate a string to a specific width in the terminal
Strip redundant indentation and indent the string
A robust HTML entities encoder/decoder with full Unicode support.
Querystringify - Small, simple but powerful query string parser.
Generate a unique random string
Normalize a URL
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.
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
Detect the indentation of code
Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.
Get the visual width of the widest line in a string - the number of columns required to display it
Trim newlines from the start and/or end of a string
Generate a cryptographically strong random string
Parse regular expressions' unicodeSets (v) flag.
A robust & optimized `String.prototype.includes` polyfill, based on the ECMAScript 6 specification.
Wildcard matching tools
Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
Fastest Levenshtein distance implementation in JS.
A robust polyfill for the `CSS.escape` utility method as defined in CSSOM.
LZ-based compression algorithm
Repeat the given string n times. Fastest implementation for repeating a string.
Check if a character is decimal
Determine the East Asian Width of a Unicode character
Check if a character is hexadecimal
mdast utility to get the plain text content of a node
Convert object keys to camel case
Check if a string has ANSI escape codes
Compute ripemd160 of bytes or strings.
CommonJS version - The smallest and fastest command-line coloring package on the internet
a few common utility template tags for ES2015
string contains methods that aren't included in the vanilla JavaScript string such as escaping html, decoding html entities, stripping tags, etc.
Math and string formula parser.
Check if a character is alphabetical
Get the gzipped size of a string or buffer
Parse and stringify URL query strings
Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`
Check if a character is alphanumerical
Convert a string to pascal case (upper camelcase).
micromark utility to decode markdown strings
Convert object keys from camel case
Formatting Date objects as strings since 2013
Create an array by repeating the given value n times.
Easy way to split a string on a given character unless it's quoted or escaped.
Split a string on the first occurance of a given separator
Get the system locale
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
A module that parses a string as regular expression and returns the parsed value.
Convert a string index to its line and column position
Hashing made simple. Get the hash of a buffer/string/stream/file.
Isomorphic, functional type-checking for Javascript
Mapping between standard locale identifiers and Windows locale identifiers (LCID)
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
Colorized string diff ideal for text/code that spans through multiple lines
Various helper utilities
Useful utilities for working with Uint8Array (and Buffer)
Convert a string to a valid safe filename
Simple micro templating
Functional errors with formatted output
Remove wrapping quotes from a string.
Compare alphanumeric strings the same way a human would, using a natural order algorithm
Repeat a string - fast
Convert a value to a ReadableStream
A tiny (305B) browser utility for stringifying a query Object.
The most efficient JS implementation calculating the Levenshtein distance, i.e. the difference between two strings.
ES2017 spec-compliant String.prototype.padEnd shim.
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Terminal string styling with tagged template literals
Functions that surround a string with ansicolor codes so it prints in color.
Returns `true` if the value is a primitive.
The smallest and fastest command-line coloring package on the internet
Strip a substring from the start/end of a string
Remove the trailing spaces from a string.
Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream
A robust & optimized `String.prototype.startsWith` polyfill, based on the ECMAScript 6 specification.
UTF-safe string operations
Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`
Simple wildcard matching
Stringify Object as tree structure
hast utility to get the plain-text value of a node
Check if a string is a URL
The color gray, in ansi.
Stringify is to `eval` as `JSON.stringify` is to `JSON.parse`
Escape strings for use as JavaScript string literals
Returns true if a windows file path has invalid characters.
Remove leading indentation from ES6 template literals.
The string_decoder module from Node core
Strip a byte order mark (BOM) from a string.
A simple string template function based on named or indexed arguments
fast string hashing function
Serializes any DOM node into a String
Fuzzy filtering and string similarity scoring - compatible with fuzzaldrin
Get the line and column number of a specific character in a string
Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.
String manipulation extensions for Underscore.js javascript library.
Iterate any iterable JS value. Works robustly in all environments, all versions.
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.
Pluralize a word
Elegant spinner for interactive CLI apps
Native JS murmur hash implementation
Newline character converter
Check if a string is SVG
Find multiple RegExp matches in a string
Reduce function calls in a string, using a callback
hast utility to get the plain-text value of a node according to the `innerText` algorithm
Advanced URL Connection String parser + generator.
Check if a character is a whitespace character
Check if a character is a word character
Opinionated HTML formatter focused towards making HTML diffs readable.
A robust & optimized `String.fromCodePoint` polyfill, based on the ECMAScript 6 specification.
DOMParser.parseFromString for XML with IE8 fallback
Simple Module for generating Random Strings
Jest snapshot serializer that beautifies HTML.
Right pad a string with zeros or a specified string. Fastest implementation.
Remove any existing casing from a string.
sprintf parser and basic formatter
Returns true if a file path does not contain any invalid characters.
Various helper utilities for working with buffers and binary data
Beautiful color gradients in terminal output
The color cyan, in ansi.
Regular expression for matching HTML comments
Check if a string is an IP address
Slugify a string
ES2017 spec-compliant String.prototype.padStart shim.
Convert Unicode characters to Latin characters using transliteration
Pure-JS printf
remove diacritics from strings
Returns true if the value passed is all whitespace.
Regular expression for matching email addresses
nlcst utility to transform a tree to a string
String encoding utilitlies extracted from TweetNaCl.js
Convert a string to space case.
Math and string formula parser.
Returns `true` if an array has a glob pattern.
The color red, in ansi.
Extensible string utility for converting, identifying and flipping string case
ES2019 spec-compliant String.prototype.trimLeft shim.
ES2019 spec-compliant String.prototype.trimLeft shim.
Convert HTML entities to HTML characters, e.g. `>` converts to `>`.
Regular expression for matching JavaScript comments
Serialises error object to normal object
sprintf formatting targetted for CLI
A robust & optimized `String.prototype.codePointAt` polyfill, based on the ECMAScript 6 specification.
Test whether a string contains only hexadecimal digits.
String formatting inspired by Python's str.format()
Returns `true` if a value exists in the given string, array or object.
Convert efficiently index to/from line-column in a string
Lightweight format utility for the browser, based on util.format().
[](https://www.npmjs.com/package/levenary) [](https://github.com/tanhauhau/levenary/actions)
This is a temporary package until I can open a pull request on the original. string contains methods that aren't included in the vanilla JavaScript string such as escaping html, decoding html entities, stripping tags, etc.
Write data to a random temporary file
Zero-dependency unicode-aware string tools
Custom formatter that converts any string into Title Case
Test whether a string contains only alphanumeric characters.
Convert a string to camel case.
strings comparison matchers for chai
Similar to String#trim() but removes only newlines
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)
A set of string utilities for parsing and assembly
parses number and unit, '20px' into [20, 'px']
Test if a value is a regular expression string.
Escapes and Unescapes strings into safe literals.
Convert HTML/XML source code or DOM nodes to React elements
Convert between POSIX and Windows paths.
Escape a string for use in AppleScript
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.
Base64 and base64url to string or arraybuffer, and back. Node, Deno or browser.
easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings.
Create a regular expression from a regular expression string.
Predicate that returns true if collection contains unique values.
Replace search occurrences with a replacement string.
alters a string by replacing multiple range fragments in one fast pass
Pad strings to a given length
Get the length of unicode strings
Iterator over lines in a string
Tagged template literal for Sanity.io GROQ-queries
The fast way to check if a string is blank
Regular expression for matching URLs
Parse parentheses from a string
Split string by any separator excluding brackets, quotes and escaped characters
Insert supplied variable values into a format string.
Allocate a buffer containing a provided string.
Test if a value is a string.
Generate string from a token array by interpolating values.
Escape a regular expression string or pattern.
Strip ANSI color codes from a string. No dependencies.
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
Left pad a string with zeros or a specified string. Fastest implementation.
Get a property from an object using dot (object path) notation.
More than 130 Handlebars helpers in ~20 categories. Helpers can be used with Assemble, Generate, Verb, Ghost, gulp-handlebars, grunt-handlebars, consolidate, or any node.js/Handlebars project.
small function to append a query string to a URL
Return a regular expression to parse a regular expression string.
Convert a string to lowercase.