JSPM

Found 9484 results for string match

has-ansi

Check if a string has ANSI escape codes

  • v6.0.0
  • 72.37
  • Published

fastest-levenshtein

Fastest Levenshtein distance implementation in JS.

  • v1.0.16
  • 72.14
  • Published

email-regex

Regular expression for matching email addresses

  • v6.1.0
  • 69.63
  • Published

js-levenshtein

The most efficient JS implementation calculating the Levenshtein distance, i.e. the difference between two strings.

  • v1.1.6
  • 67.78
  • Published

strip-ansi

Strip ANSI escape codes from a string

  • v7.1.0
  • 67.39
  • Published

chalk

Terminal string styling done right

  • v5.6.0
  • 67.21
  • Published

string-width

Get the visual width of a string - the number of columns required to display it

  • v8.0.0
  • 66.17
  • Published

matcher

Simple wildcard matching

  • v5.0.0
  • 66.14
  • Published

wrap-ansi

Wordwrap a string with ANSI escape codes

  • v9.0.0
  • 65.86
  • Published

applause

Human-friendly replacements.

  • v2.0.4
  • 65.67
  • Published

@stdlib/regexp-regexp

Return a regular expression to parse a regular expression string.

  • v0.2.2
  • 65.46
  • Published

is-match-ip

Matching IPs using [micromatch][] and [ip-filter][] - glob patterns, RegExp, string or array of globs. Returns matcher function.

  • v1.0.0
  • 64.84
  • Published

kind-of

Get the native type of a value.

  • v6.0.3
  • 64.46
  • Published

is-fullwidth-code-point

Check if the character represented by a given Unicode code point is fullwidth

  • v5.1.0
  • 64.27
  • Published

get-stream

Get a stream as a string, Buffer, ArrayBuffer or array

  • v9.0.1
  • 64.10
  • Published

grunt-replace

Replace text patterns with applause.

  • v2.0.2
  • 64.01
  • Published

is-invalid-path

Returns true if a windows file path has invalid characters.

  • v1.0.2
  • 63.98
  • Published

camelcase

Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`

  • v8.0.0
  • 63.49
  • Published

strip-bom

Strip UTF-8 byte order mark (BOM) from a string

  • v5.0.0
  • 63.37
  • Published

parse-json

Parse JSON with more helpful errors

  • v8.3.0
  • 63.18
  • Published

jsesc

Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.

  • v3.1.0
  • 62.92
  • Published

magic-string

Modify strings, generate sourcemaps

  • v0.30.18
  • 62.70
  • Published

regx

Tagged template string regular expression compiler.

  • v1.0.4
  • 62.64
  • Published

html-comment-regex

Regular expression for matching HTML comments

  • v1.1.2
  • 62.46
  • Published

ansi-escapes

ANSI escape codes for manipulating the terminal

  • v7.0.0
  • 62.21
  • Published

is-ip

Check if a string is an IP address

  • v5.0.1
  • 62.05
  • Published

strip-final-newline

Strip the final newline character from a string or Uint8Array

  • v4.0.0
  • 61.64
  • Published

is-valid-path

Returns true if a file path does not contain any invalid characters.

  • v0.1.1
  • 61.60
  • Published

get-urls

Get all URLs in a string

  • v12.1.0
  • 61.59
  • Published

slice-ansi

Slice a string with ANSI escape codes

  • v7.1.0
  • 61.59
  • Published

prelude-ls

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.

  • v1.2.1
  • 61.42
  • Published

fast-levenshtein

Efficient implementation of Levenshtein algorithm with locale-specific collator support.

  • v3.0.0
  • 61.22
  • Published

natural-compare

Compare strings containing a mix of letters and numbers in the way a human being would in sort order.

  • v1.4.0
  • 61.19
  • Published

indent-string

Indent each line in a string

  • v5.0.0
  • 61.17
  • Published

es-to-primitive

ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES2015 versions.

  • v1.3.0
  • 61.06
  • Published

is-whitespace

Returns true if the value passed is all whitespace.

  • v0.3.0
  • 60.96
  • Published

has-glob

Returns `true` if an array has a glob pattern.

  • v1.0.0
  • 60.66
  • Published

is-string

Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

  • v1.1.1
  • 60.61
  • Published

strnum

Parse String to Number based on configuration

  • v2.1.1
  • 60.45
  • Published

decamelize

Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow

  • v6.0.1
  • 60.28
  • Published

match-sort

Customisable string match sorting features

  • v1.0.5
  • 60.26
  • Published

cssesc

A JavaScript library for escaping CSS strings and identifiers while generating the shortest possible ASCII-only output.

  • v3.0.0
  • 60.20
  • Published

strip-indent

Strip leading whitespace from each line in a string

  • v4.0.0
  • 60.14
  • Published

comment-regex

Regular expression for matching JavaScript comments

  • v2.0.0
  • 60.13
  • Published

string-length

Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes

  • v6.0.0
  • 60.10
  • Published

he

A robust HTML entities encoder/decoder with full Unicode support.

  • v1.2.0
  • 60.02
  • Published

querystringify

Querystringify - Small, simple but powerful query string parser.

  • v2.2.0
  • 59.92
  • Published

ansi-colors

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).

  • v4.1.3
  • 59.86
  • Published

levenary

[![npm-version](https://img.shields.io/npm/v/levenary.svg)](https://www.npmjs.com/package/levenary) [![github-actions](https://github.com/tanhauhau/levenary/workflows/CI/badge.svg)](https://github.com/tanhauhau/levenary/actions)

  • v1.1.1
  • 59.52
  • Published

url-parse

Small footprint URL parser that works seamlessly across Node.js and browser environments

  • v1.5.10
  • 59.16
  • Published

cli-truncate

Truncate a string to a specific width in the terminal

  • v5.0.0
  • 59.06
  • Published

redent

Strip redundant indentation and indent the string

  • v4.0.0
  • 58.99
  • Published

min-indent

Get the shortest leading whitespace from lines in a string

  • v1.0.1
  • 58.77
  • Published

own-keys

Robustly get an object's own property keys (strings and symbols), including non-enumerables when possible

  • v1.0.1
  • 58.76
  • Published

has-values

Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.

  • v2.0.1
  • 58.45
  • Published

css.escape

A robust polyfill for the `CSS.escape` utility method as defined in CSSOM.

  • v1.5.1
  • 58.35
  • Published

unique-string

Generate a unique random string

  • v3.0.0
  • 58.33
  • Published

string.prototype.repeat

A robust & optimized `String.prototype.repeat` polyfill, based on the ECMAScript 6 specification.

  • v1.0.0
  • 58.17
  • Published

has-value

Returns true if a value exists, false if empty. Works with deeply nested values using object paths.

  • v2.0.2
  • 58.09
  • Published

lz-string

LZ-based compression algorithm

  • v1.5.0
  • 57.96
  • Published

repeat-string

Repeat the given string n times. Fastest implementation for repeating a string.

  • v1.6.1
  • 57.72
  • Published

trim-newlines

Trim newlines from the start and/or end of a string

  • v5.0.0
  • 57.67
  • Published

widest-line

Get the visual width of the widest line in a string - the number of columns required to display it

  • v5.0.0
  • 57.62
  • Published

pg-connection-string

Functions for dealing with a PostgresSQL connection string

  • v2.9.1
  • 57.51
  • Published

broccoli-replace

Replace text patterns with applause.

  • v2.0.2
  • 57.49
  • Published

mdast-util-to-string

mdast utility to get the plain text content of a node

  • v4.0.0
  • 57.27
  • Published

string.prototype.includes

A robust & optimized `String.prototype.includes` polyfill, based on the ECMAScript 6 specification.

  • v2.0.1
  • 57.05
  • Published

is-alphabetical

Check if a character is alphabetical

  • v2.0.1
  • 57.03
  • Published

common-tags

a few common utility template tags for ES2015

  • v1.8.2
  • 57.02
  • Published

camelcase-keys

Convert object keys to camel case

  • v9.1.3
  • 57.01
  • Published

wildcard

Wildcard matching tools

  • v2.0.1
  • 56.96
  • Published

query-string

Parse and stringify URL query strings

  • v9.2.2
  • 56.80
  • Published

ripemd160

Compute ripemd160 of bytes or strings.

  • v2.0.2
  • 56.76
  • Published

is-decimal

Check if a character is decimal

  • v2.0.1
  • 56.75
  • Published

@isdk/glob

a library that provides a simple and efficient way to match string against glob patterns.

  • v0.1.1
  • 56.60
  • Published

is-hexadecimal

Check if a character is hexadecimal

  • v2.0.1
  • 56.59
  • Published

gzip-size

Get the gzipped size of a string or buffer

  • v7.0.0
  • 56.55
  • Published

unpack-string

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)'

    • v0.0.4
    • 56.46
    • Published

    next-applause

    Human-friendly replacements.

    • v2.2.4
    • 56.38
    • Published

    yoctocolors-cjs

    CommonJS version - The smallest and fastest command-line coloring package on the internet

    • v2.1.3
    • 56.10
    • Published

    repeat-element

    Create an array by repeating the given value n times.

    • v1.1.4
    • 56.07
    • Published

    StringScanner

    StringScanner performs lexical scanning operations on a string.

    • v0.0.3
    • 55.94
    • Published

    split-string

    Easy way to split a string on a given character unless it's quoted or escaped.

    • v6.1.0
    • 55.89
    • Published

    pretty-ms

    Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`

    • v9.2.0
    • 55.74
    • Published

    pascalcase

    Convert a string to pascal case (upper camelcase).

    • v2.0.0
    • 55.73
    • Published

    decamelize-keys

    Convert object keys from camel case

    • v2.0.1
    • 55.72
    • Published

    strip-color

    Strip ANSI color codes from a string. No dependencies.

    • v0.1.0
    • 55.60
    • Published

    regex-parser

    A module that parses a string as regular expression and returns the parsed value.

    • v2.3.1
    • 55.23
    • Published

    date-format

    Formatting Date objects as strings since 2013

    • v4.0.14
    • 55.20
    • Published

    natural-compare-lite

    Compare strings containing a mix of letters and numbers in the way a human being would in sort order.

    • v1.4.0
    • 55.19
    • Published

    typical

    Isomorphic, functional type-checking for Javascript

    • v7.3.0
    • 55.00
    • Published

    hasha

    Hashing made simple. Get the hash of a buffer/string/stream/file.

    • v6.0.0
    • 54.74
    • Published

    os-locale

    Get the system locale

    • v6.0.2
    • 54.40
    • Published

    string-natural-compare

    Compare alphanumeric strings the same way a human would, using a natural order algorithm

    • v3.0.1
    • 54.15
    • Published

    index-to-position

    Convert a string index to its line and column position

    • v1.1.0
    • 54.13
    • Published

    pupa

    Simple micro templating

    • v3.1.0
    • 53.95
    • Published

    repeating

    Repeat a string - fast

    • v4.0.0
    • 53.94
    • Published

    filenamify

    Convert a string to a valid safe filename

    • v6.0.0
    • 53.94
    • Published

    unquote

    Remove wrapping quotes from a string.

    • v1.1.1
    • 53.78
    • Published

    didyoumean2

    a library for matching human-quality input to a list of potential matches using the Levenshtein distance algorithm

    • v7.0.4
    • 53.75
    • Published

    lcid

    Mapping between standard locale identifiers and Windows locale identifiers (LCID)

    • v5.0.0
    • 53.61
    • Published

    fault

    Functional errors with formatted output

    • v2.0.1
    • 53.60
    • Published

    uint8array-extras

    Useful utilities for working with Uint8Array (and Buffer)

    • v1.5.0
    • 53.28
    • Published

    strip-outer

    Strip a substring from the start/end of a string

    • v2.0.0
    • 53.10
    • Published

    chalk-template

    Terminal string styling with tagged template literals

    • v1.1.0
    • 53.04
    • Published

    trim-repeated

    Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz

    • v2.0.0
    • 53.00
    • Published

    yoctocolors

    The smallest and fastest command-line coloring package on the internet

    • v2.1.2
    • 52.97
    • Published

    is-primitive

    Returns `true` if the value is a primitive.

    • v3.0.1
    • 52.91
    • Published

    @stdlib/utils-index-of

    Return the first index at which a given element can be found.

    • v0.2.2
    • 52.78
    • Published

    into-stream

    Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream

    • v8.0.1
    • 52.68
    • Published

    ansicolors

    Functions that surround a string with ansicolor codes so it prints in color.

    • v0.3.2
    • 52.62
    • Published

    sdm2

    A high performance library to match discontinuous strings

    • v1.1.3
    • 51.90
    • Published

    @stdlib/string

    String manipulation functions.

    • v0.3.3
    • 51.75
    • Published

    is-url-superb

    Check if a string is a URL

    • v6.1.0
    • 51.63
    • Published

    titleize

    Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`

    • v4.0.0
    • 51.58
    • Published

    js-string-escape

    Escape strings for use as JavaScript string literals

    • v1.0.1
    • 51.52
    • Published

    object-treeify

    Stringify Object as tree structure

    • v5.0.1
    • 51.50
    • Published

    outdent

    Remove leading indentation from ES6 template literals.

    • v0.8.0
    • 51.43
    • Published

    string-hash

    fast string hashing function

    • v1.1.3
    • 51.39
    • Published

    iterate-value

    Iterate any iterable JS value. Works robustly in all environments, all versions.

    • v1.0.2
    • 51.39
    • Published

    locate-character

    Get the line and column number of a specific character in a string

    • v3.0.0
    • 51.25
    • Published

    dom-serialize

    Serializes any DOM node into a String

    • v2.2.1
    • 51.24
    • Published

    hast-util-to-string

    hast utility to get the plain-text value of a node

    • v3.0.1
    • 51.12
    • Published

    underscore.string

    String manipulation extensions for Underscore.js javascript library.

    • v3.3.6
    • 51.06
    • Published

    natural-orderby

    Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.

    • v5.0.0
    • 51.06
    • Published

    strip-bom-string

    Strip a byte order mark (BOM) from a string.

    • v1.0.0
    • 51.02
    • Published

    ansi-gray

    The color gray, in ansi.

    • v0.1.1
    • 50.90
    • Published

    javascript-stringify

    Stringify is to `eval` as `JSON.stringify` is to `JSON.parse`

    • v2.1.0
    • 50.89
    • Published

    string-template

    A simple string template function based on named or indexed arguments

    • v1.0.0
    • 50.77
    • Published

    elegant-spinner

    Elegant spinner for interactive CLI apps

    • v3.0.0
    • 50.49
    • Published

    character-parser

    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.

    • v4.0.0
    • 50.47
    • Published

    murmurhash-js

    Native JS murmur hash implementation

    • v1.0.0
    • 50.33
    • Published

    hast-util-to-text

    hast utility to get the plain-text value of a node according to the `innerText` algorithm

    • v4.0.2
    • 50.20
    • Published

    is-svg

    Check if a string is SVG

    • v6.1.0
    • 49.95
    • Published

    is-word-character

    Check if a character is a word character

    • v2.0.1
    • 49.88
    • Published

    gradient-string

    Beautiful color gradients in terminal output

    • v3.0.0
    • 49.69
    • Published

    pad-right

    Right pad a string with zeros or a specified string. Fastest implementation.

    • v0.2.2
    • 49.68
    • Published

    diffable-html

    Opinionated HTML formatter focused towards making HTML diffs readable.

    • v6.0.1
    • 49.38
    • Published

    @jsonjoy.com/buffers

    Various helper utilities for working with buffers and binary data

    • v1.0.0
    • 49.01
    • Published

    printj

    Pure-JS printf

    • v1.3.1
    • 48.97
    • Published

    ts-replace-all

    This package includes the [core-js](https://github.com/zloirock/core-js) polyfill for `String#replaceAll`, along with TypeScript typings.

    • v1.0.0
    • 48.91
    • Published

    string.fromcodepoint

    A robust & optimized `String.fromCodePoint` polyfill, based on the ECMAScript 6 specification.

    • v1.0.3
    • 48.91
    • Published

    to-no-case

    Remove any existing casing from a string.

    • v1.0.2
    • 48.71
    • Published

    sprintf-kit

    sprintf parser and basic formatter

    • v2.0.2
    • 48.66
    • Published

    ansi-cyan

    The color cyan, in ansi.

    • v0.1.1
    • 48.32
    • Published

    nlcst-to-string

    nlcst utility to transform a tree to a string

    • v4.0.0
    • 48.26
    • Published

    to-space-case

    Convert a string to space case.

    • v1.0.0
    • 48.21
    • Published

    ansi-red

    The color red, in ansi.

    • v0.1.1
    • 48.18
    • Published

    ukkonen

    Ukkonens approximate string matching algorithm for finding edit distance similar to Levenshtein

    • v2.2.0
    • 48.18
    • Published

    case

    Extensible string utility for converting, identifying and flipping string case

    • v1.6.3
    • 48.15
    • Published

    diacritics

    remove diacritics from strings

    • v1.3.0
    • 48.12
    • Published

    js-levenshtein-esm

    The most efficient JS implementation calculating the Levenshtein distance, i.e. the difference between two strings.

    • v2.0.0
    • 48.08
    • Published

    tweetnacl-util

    String encoding utilitlies extracted from TweetNaCl.js

    • v0.15.1
    • 47.98
    • Published

    mudder

    Find lexicographical points between strings

    • v2.1.1
    • 47.82
    • Published

    unescape

    Convert HTML entities to HTML characters, e.g. `>` converts to `>`.

    • v1.0.1
    • 47.66
    • Published

    string-format

    String formatting inspired by Python's str.format()

    • v2.0.0
    • 47.59
    • Published

    @hapi/formula

    Math and string formula parser.

    • v3.0.2
    • 47.49
    • Published

    tamedevil

    Build and evaluate JavaScript strings safely via tagged template literals

    • v0.0.0-beta.8
    • 47.24
    • Published

    serialised-error

    Serialises error object to normal object

    • v1.1.3
    • 47.05
    • Published

    format-util

    Lightweight format utility for the browser, based on util.format().

    • v1.0.5
    • 47.02
    • Published

    string.prototype.codepointat

    A robust & optimized `String.prototype.codePointAt` polyfill, based on the ECMAScript 6 specification.

    • v1.0.1
    • 46.94
    • Published

    is-alphanumeric

    Check if a string only contains alphanumeric characters

    • v1.0.0
    • 46.64
    • Published

    line-column

    Convert efficiently index to/from line-column in a string

    • v1.0.2
    • 46.62
    • Published

    to-camel-case

    Convert a string to camel case.

    • v1.0.0
    • 46.56
    • Published

    trim-off-newlines

    Similar to String#trim() but removes only newlines

    • v1.0.3
    • 46.41
    • Published

    temp-write

    Write data to a random temporary file

    • v6.0.0
    • 46.38
    • Published

    chai-string

    strings comparison matchers for chai

    • v1.6.0
    • 46.27
    • Published

    stringz

    Zero-dependency unicode-aware string tools

    • v2.1.0
    • 45.97
    • Published

    is-html

    Check if a string is HTML

    • v3.1.0
    • 45.95
    • Published

    maxmin

    Get a pretty output of the original, minified, gzipped size of a string or buffer: 130 B → 91 B → 53 B (gzip)

    • v4.1.0
    • 45.71
    • Published

    pad-component

    Pad strings to a given length

      • v0.0.1
      • 45.42
      • Published

      @hexagon/base64

      Base64 and base64url to string or arraybuffer, and back. Node, Deno or browser.

      • v2.0.4
      • 45.36
      • Published

      is-string-blank

      The fast way to check if a string is blank

      • v1.0.1
      • 45.32
      • Published

      fast-stream-to-buffer

      Consume a stream of data into a binary Buffer as efficiently as possible

      • v1.0.0
      • 45.27
      • Published

      react-from-dom

      Convert HTML/XML source code or DOM nodes to React elements

      • v0.7.5
      • 45.25
      • Published

      str-match

      String matcher that output the input string replacing the match.

      • v2.1.7
      • 45.24
      • Published

      next-line

      Iterator over lines in a string

      • v1.1.0
      • 45.23
      • Published

      parse-unit

      parses number and unit, '20px' into [20, 'px']

      • v1.0.1
      • 45.20
      • Published

      string-score

      A pure (functional) version of Joshaven Potter's string_score package which doesn't alter the String prototype.

      • v1.0.1
      • 45.15
      • Published

      is-odd

      Returns true if the given number is odd, and is an integer that does not exceed the JavaScript MAXIMUM_SAFE_INTEGER.

      • v3.0.1
      • 45.13
      • Published

      parenthesis

      Parse parentheses from a string

      • v3.1.8
      • 45.08
      • Published

      humanize-string

      Convert a camelized/dasherized/underscored string into a humanized one: `fooBar-Baz_Faz` → `Foo bar baz faz`

      • v3.0.0
      • 45.05
      • Published

      unicode-length

      Get the length of unicode strings

      • v2.1.0
      • 44.89
      • Published

      quoted-printable

      A robust & character encoding–agnostic JavaScript implementation of the `Quoted-Printable` content transfer encoding as defined by RFC 2045.

      • v1.0.1
      • 44.84
      • Published

      get-object

      Get a property from an object using dot (object path) notation.

      • v0.2.0
      • 44.83
      • Published

      number-to-words

      Contains some util methods for converting numbers into words, ordinal words and ordinal numbers.

      • v1.2.4
      • 44.72
      • Published

      groq

      Tagged template literal for Sanity.io GROQ-queries

      • v4.6.0
      • 44.66
      • Published

      string-split-by

      Split string by any separator excluding brackets, quotes and escaped characters

      • v1.0.0
      • 44.63
      • Published

      slug

      slugifies even utf-8 chars!

      • v11.0.0
      • 44.61
      • Published

      url-regex

      Regular expression for matching URLs

      • v5.0.0
      • 44.54
      • Published

      alter

      alters a string by replacing multiple range fragments in one fast pass

      • v0.2.0
      • 44.36
      • Published

      string-to-stream

      Convert a string into a stream (streams2)

      • v3.0.1
      • 44.33
      • Published

      esrever

      A fully Unicode-aware string reverser written in JavaScript.

      • v0.2.0
      • 44.26
      • Published

      closewords

      A library for finding the most similar word from a list of words, supporting Japanese (including kanji). / 最も似た単語を単語群から検索する日本語(漢字含む)対応のライブラリ

      • v2.3.1
      • 44.23
      • Published

      streamifier

      Converts a Buffer/String into a readable stream

      • v0.1.1
      • 44.22
      • Published

      memory-streams

      Simple implmentation of Stream.Readable and Stream.Writable holding the data in memory.

      • v0.1.3
      • 44.19
      • Published

      @pivanov/utils

      A collection of personal utilities to live a happier life

      • v0.0.2
      • 44.16
      • Published

      pad-left

      Left pad a string with zeros or a specified string. Fastest implementation.

      • v2.1.0
      • 44.15
      • Published

      email-regex-safe

      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.

      • v4.0.0
      • 44.12
      • Published

      url-set-query

      small function to append a query string to a URL

      • v1.0.0
      • 44.12
      • Published