JSPM

Found 9479 results for string match

match-casing

Match the case of `value` to that of `base`

  • v2.0.1
  • 334.20
  • Published

string-match-left-right

Match substrings on the left or right of a given index, ignoring whitespace

  • v9.0.23
  • 319.69
  • Published

replace-last

JavaScript replaceLast function - Replaces last match for pattern in string with replacement

  • v1.2.6
  • 227.12
  • Published

match-all

Get all the matches for a regular expression in a string.

  • v1.2.7
  • 187.14
  • Published

unicode-astral-regex

A regex to match astral symbols that supports unicode strings.

  • v1.0.1
  • 185.46
  • Published

match-string

match-string is a javascript function who return a regexp for match a string with all of his accents possible

  • v1.0.3
  • 180.97
  • Published

webpack-string-replacer

Replace strings in webpack modules, with configurable apply-stage and match-count requirements.

  • v0.0.20
  • 177.72
  • Published

reregexp

Generate a random string match a given regular expression, suitable for mocking strings.

  • v1.6.1
  • 161.73
  • Published

line-number

Get the line number for each regex match found in a string.

  • v0.1.0
  • 150.71
  • Published

ansi-regex

Regular expression for matching ANSI escape codes

  • v6.2.0
  • 142.17
  • Published

chai-match

Advanced RegExp assertions for Chai.js

  • v1.1.1
  • 140.56
  • Published

ip-filter

Validates given IPs (IPv4 and IPv6) using [micromatch][] - glob patterns, RegExp, string or array of globs. If match returns the IP, otherwise null.

  • v4.0.0
  • 128.45
  • Published

fuzzy-match-utils

A collection of string matching algorithms built with React Select in mind

  • v1.3.0
  • 125.06
  • Published

anymatch

Matches strings against configurable strings, globs, regular expressions, and/or functions

  • v3.1.3
  • 119.25
  • Published

execall

Find multiple RegExp matches in a string

  • v3.0.0
  • 112.32
  • Published

partial-match

a search util that gives match strength of a query against a sentence

  • v1.0.2
  • 105.18
  • Published

string-match-all

`String.prototype.matchAll` ponyfill.

  • v1.1.1
  • 102.76
  • Published

split-match

A React component for finding matches within a split string.

    • v0.2.2
    • 100.70
    • Published

    url-pattern

    easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings.

    • v1.0.3
    • 99.13
    • Published

    @nxmix/emoji-seq-match

    Match Emoji combinations according to unicode emoji specification

    • v1.0.0
    • 97.33
    • Published

    ansi-styles

    ANSI escape codes for styling strings in the terminal

    • v6.2.1
    • 97.12
    • Published

    string_decoder

    The string_decoder module from Node core

    • v1.3.0
    • 91.16
    • Published

    replace-string

    Replace all substring matches in a string

    • v4.0.0
    • 88.40
    • Published

    detect-indent

    Detect the indentation of code

    • v7.0.1
    • 82.72
    • Published

    split-on-first

    Split a string on the first occurance of a given separator

    • v4.0.0
    • 79.50
    • Published

    is-glob

    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

    • v4.0.3
    • 79.15
    • Published

    is-extglob

    Returns true if a string has an extglob.

    • v2.1.1
    • 78.81
    • Published

    fuzzaldrin-plus

    Fuzzy filtering and string similarity scoring - compatible with fuzzaldrin

    • v0.6.0
    • 76.91
    • Published

    leven

    Measure the difference between two strings using the Levenshtein distance algorithm

    • v4.0.0
    • 76.77
    • Published

    plur

    Pluralize a word

    • v5.1.0
    • 76.03
    • Published

    pipetteur

    A function to extract any colors from a string

    • v2.0.3
    • 75.88
    • Published

    command-score

    Yet another javascript fuzzy matching library

    • v0.1.2
    • 75.80
    • Published

    tokenizr

    String Tokenization Library for JavaScript

    • v2.0.1
    • 74.46
    • Published

    fastest-levenshtein

    Fastest Levenshtein distance implementation in JS.

    • v1.0.16
    • 73.10
    • Published

    has-ansi

    Check if a string has ANSI escape codes

    • v6.0.0
    • 73.05
    • Published

    eol

    Newline character converter

    • v0.10.0
    • 72.95
    • Published

    email-regex

    Regular expression for matching email addresses

    • v6.1.0
    • 69.92
    • Published

    strip-ansi

    Strip ANSI escape codes from a string

    • v7.1.0
    • 68.55
    • Published

    js-levenshtein

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

    • v1.1.6
    • 68.30
    • Published

    chalk

    Terminal string styling done right

    • v5.6.0
    • 67.75
    • Published

    string-width

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

    • v8.0.0
    • 67.29
    • Published

    matcher

    Simple wildcard matching

    • v5.0.0
    • 66.61
    • Published

    wrap-ansi

    Wordwrap a string with ANSI escape codes

    • v9.0.0
    • 66.15
    • Published

    applause

    Human-friendly replacements.

    • v2.0.4
    • 66.08
    • Published

    @stdlib/regexp-regexp

    Return a regular expression to parse a regular expression string.

    • v0.2.2
    • 65.77
    • Published

    kind-of

    Get the native type of a value.

    • v6.0.3
    • 65.18
    • 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
    • 65.18
    • Published

    is-invalid-path

    Returns true if a windows file path has invalid characters.

    • v1.0.2
    • 64.84
    • Published

    is-fullwidth-code-point

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

    • v5.0.0
    • 64.84
    • Published

    strip-bom

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

    • v5.0.0
    • 64.49
    • Published

    parse-json

    Parse JSON with more helpful errors

    • v8.3.0
    • 64.25
    • Published

    grunt-replace

    Replace text patterns with applause.

    • v2.0.2
    • 64.08
    • Published

    camelcase

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

    • v8.0.0
    • 63.96
    • Published

    get-stream

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

    • v9.0.1
    • 63.94
    • Published

    jsesc

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

    • v3.1.0
    • 63.70
    • Published

    html-comment-regex

    Regular expression for matching HTML comments

    • v1.1.2
    • 63.48
    • Published

    magic-string

    Modify strings, generate sourcemaps

    • v0.30.18
    • 62.89
    • Published

    ansi-escapes

    ANSI escape codes for manipulating the terminal

    • v7.0.0
    • 62.81
    • Published

    regx

    Tagged template string regular expression compiler.

    • v1.0.4
    • 62.59
    • Published

    is-valid-path

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

    • v0.1.1
    • 62.41
    • 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
    • 62.30
    • Published

    strip-final-newline

    Strip the final newline character from a string or Uint8Array

    • v4.0.0
    • 62.27
    • Published

    es-to-primitive

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

    • v1.3.0
    • 62.22
    • Published

    slice-ansi

    Slice a string with ANSI escape codes

    • v7.1.0
    • 62.16
    • 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
    • 62.02
    • Published

    fast-levenshtein

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

    • v3.0.0
    • 61.94
    • Published

    is-ip

    Check if a string is an IP address

    • v5.0.1
    • 61.90
    • Published

    get-urls

    Get all URLs in a string

    • v12.1.0
    • 61.86
    • Published

    indent-string

    Indent each line in a string

    • v5.0.0
    • 61.71
    • Published

    decamelize

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

    • v6.0.1
    • 61.41
    • Published

    is-whitespace

    Returns true if the value passed is all whitespace.

    • v0.3.0
    • 61.39
    • Published

    has-glob

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

    • v1.0.0
    • 61.14
    • Published

    match-sort

    Customisable string match sorting features

    • v1.0.5
    • 61.11
    • 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.95
    • Published

    strnum

    Parse String to Number based on configuration

    • v2.1.1
    • 60.81
    • Published

    comment-regex

    Regular expression for matching JavaScript comments

    • v2.0.0
    • 60.49
    • Published

    he

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

    • v1.2.0
    • 60.47
    • Published

    string-length

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

    • v6.0.0
    • 60.47
    • Published

    querystringify

    Querystringify - Small, simple but powerful query string parser.

    • v2.2.0
    • 60.34
    • 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
    • 60.22
    • 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
    • 60.14
    • Published

    cli-truncate

    Truncate a string to a specific width in the terminal

    • v4.0.0
    • 60.10
    • Published

    strip-indent

    Strip leading whitespace from each line in a string

    • v4.0.0
    • 60.01
    • Published

    cssesc

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

    • v3.0.0
    • 59.96
    • Published

    redent

    Strip redundant indentation and indent the string

    • v4.0.0
    • 59.66
    • Published

    unique-string

    Generate a unique random string

    • v3.0.0
    • 59.36
    • Published

    url-parse

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

    • v1.5.10
    • 59.31
    • Published

    string.prototype.repeat

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

    • v1.0.0
    • 59.19
    • Published

    has-value

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

    • v2.0.2
    • 59.13
    • Published

    min-indent

    Get the shortest leading whitespace from lines in a string

    • v1.0.1
    • 59.05
    • Published

    own-keys

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

    • v1.0.1
    • 59.03
    • 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.82
    • Published

    css.escape

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

    • v1.5.1
    • 58.74
    • Published

    trim-newlines

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

    • v5.0.0
    • 58.67
    • Published

    repeat-string

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

    • v1.6.1
    • 58.65
    • 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
    • 58.62
    • Published

    get-east-asian-width

    Determine the East Asian Width of a Unicode character

    • v1.3.0
    • 58.17
    • Published

    string.prototype.includes

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

    • v2.0.1
    • 58.08
    • Published

    mdast-util-to-string

    mdast utility to get the plain text content of a node

    • v4.0.0
    • 57.98
    • Published

    wildcard

    Wildcard matching tools

    • v2.0.1
    • 57.90
    • Published

    broccoli-replace

    Replace text patterns with applause.

    • v2.0.2
    • 57.88
    • Published

    pg-connection-string

    Functions for dealing with a PostgresSQL connection string

    • v2.9.1
    • 57.87
    • Published

    lz-string

    LZ-based compression algorithm

    • v1.5.0
    • 57.83
    • Published

    is-decimal

    Check if a character is decimal

    • v2.0.1
    • 57.68
    • Published

    common-tags

    a few common utility template tags for ES2015

    • v1.8.2
    • 57.67
    • Published

    camelcase-keys

    Convert object keys to camel case

    • v9.1.3
    • 57.64
    • Published

    query-string

    Parse and stringify URL query strings

    • v9.2.2
    • 57.45
    • Published

    @isdk/glob

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

    • v0.1.1
    • 57.22
    • Published

    is-hexadecimal

    Check if a character is hexadecimal

    • v2.0.1
    • 57.15
    • Published

    ripemd160

    Compute ripemd160 of bytes or strings.

    • v2.0.2
    • 57.12
    • Published

    gzip-size

    Get the gzipped size of a string or buffer

    • v7.0.0
    • 57.02
    • 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.99
      • Published

      yoctocolors-cjs

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

      • v2.1.3
      • 56.94
      • Published

      split-string

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

      • v6.1.0
      • 56.83
      • Published

      is-alphabetical

      Check if a character is alphabetical

      • v2.0.1
      • 56.73
      • Published

      pretty-ms

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

      • v9.2.0
      • 56.60
      • Published

      pascalcase

      Convert a string to pascal case (upper camelcase).

      • v2.0.0
      • 56.60
      • Published

      strip-color

      Strip ANSI color codes from a string. No dependencies.

      • v0.1.0
      • 56.54
      • Published

      decamelize-keys

      Convert object keys from camel case

      • v2.0.1
      • 56.42
      • Published

      repeat-element

      Create an array by repeating the given value n times.

      • v1.1.4
      • 56.23
      • Published

      date-format

      Formatting Date objects as strings since 2013

      • v4.0.14
      • 55.91
      • Published

      regex-parser

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

      • v2.3.1
      • 55.85
      • Published

      os-locale

      Get the system locale

      • v6.0.2
      • 55.74
      • Published

      StringScanner

      StringScanner performs lexical scanning operations on a string.

      • v0.0.3
      • 55.71
      • 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.63
      • Published

      hasha

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

      • v6.0.0
      • 55.43
      • Published

      typical

      Isomorphic, functional type-checking for Javascript

      • v7.3.0
      • 55.30
      • Published

      index-to-position

      Convert a string index to its line and column position

      • v1.1.0
      • 54.99
      • Published

      next-applause

      Human-friendly replacements.

      • v2.2.4
      • 54.98
      • Published

      lcid

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

      • v5.0.0
      • 54.91
      • Published

      pupa

      Simple micro templating

      • v3.1.0
      • 54.71
      • Published

      filenamify

      Convert a string to a valid safe filename

      • v6.0.0
      • 54.64
      • Published

      unquote

      Remove wrapping quotes from a string.

      • v1.1.1
      • 54.56
      • Published

      string-natural-compare

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

      • v3.0.1
      • 54.51
      • Published

      didyoumean2

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

      • v7.0.4
      • 54.25
      • Published

      repeating

      Repeat a string - fast

      • v4.0.0
      • 53.90
      • Published

      uint8array-extras

      Useful utilities for working with Uint8Array (and Buffer)

      • v1.5.0
      • 53.89
      • Published

      fault

      Functional errors with formatted output

      • v2.0.1
      • 53.85
      • Published

      ansicolors

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

      • v0.3.2
      • 53.47
      • Published

      is-primitive

      Returns `true` if the value is a primitive.

      • v3.0.1
      • 53.40
      • Published

      trim-repeated

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

      • v2.0.0
      • 53.27
      • Published

      chalk-template

      Terminal string styling with tagged template literals

      • v1.1.0
      • 53.20
      • Published

      yoctocolors

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

      • v2.1.2
      • 53.17
      • Published

      @stdlib/utils-index-of

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

      • v0.2.2
      • 53.04
      • Published

      into-stream

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

      • v8.0.1
      • 52.98
      • Published

      strip-outer

      Strip a substring from the start/end of a string

      • v2.0.0
      • 52.96
      • Published

      sdm2

      A high performance library to match discontinuous strings

      • v1.1.3
      • 52.65
      • Published

      titleize

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

      • v4.0.0
      • 52.51
      • Published

      object-treeify

      Stringify Object as tree structure

      • v5.0.1
      • 52.21
      • Published

      hast-util-to-string

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

      • v3.0.1
      • 51.99
      • Published

      ansi-gray

      The color gray, in ansi.

      • v0.1.1
      • 51.88
      • Published

      js-string-escape

      Escape strings for use as JavaScript string literals

      • v1.0.1
      • 51.88
      • Published

      is-url-superb

      Check if a string is a URL

      • v6.1.0
      • 51.84
      • Published

      @stdlib/string

      String manipulation functions.

      • v0.3.3
      • 51.78
      • Published

      iterate-value

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

      • v1.0.2
      • 51.75
      • Published

      dom-serialize

      Serializes any DOM node into a String

      • v2.2.1
      • 51.69
      • Published

      natural-orderby

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

      • v5.0.0
      • 51.64
      • Published

      outdent

      Remove leading indentation from ES6 template literals.

      • v0.8.0
      • 51.55
      • Published

      strip-bom-string

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

      • v1.0.0
      • 51.51
      • Published

      string-hash

      fast string hashing function

      • v1.1.3
      • 51.31
      • Published

      string-template

      A simple string template function based on named or indexed arguments

      • v1.0.0
      • 51.31
      • Published

      locate-character

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

      • v3.0.0
      • 51.24
      • Published

      javascript-stringify

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

      • v2.1.0
      • 51.19
      • Published

      underscore.string

      String manipulation extensions for Underscore.js javascript library.

      • v3.3.6
      • 51.00
      • 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.69
      • Published

      murmurhash-js

      Native JS murmur hash implementation

      • v1.0.0
      • 50.67
      • Published

      elegant-spinner

      Elegant spinner for interactive CLI apps

      • v3.0.0
      • 50.65
      • Published

      is-svg

      Check if a string is SVG

      • v6.1.0
      • 50.63
      • Published

      is-word-character

      Check if a character is a word character

      • v2.0.1
      • 50.53
      • 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.43
      • Published

      gradient-string

      Beautiful color gradients in terminal output

      • v3.0.0
      • 49.99
      • Published

      diffable-html

      Opinionated HTML formatter focused towards making HTML diffs readable.

      • v6.0.1
      • 49.91
      • Published

      string.fromcodepoint

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

      • v1.0.3
      • 49.75
      • Published

      printj

      Pure-JS printf

      • v1.3.1
      • 49.70
      • Published

      to-no-case

      Remove any existing casing from a string.

      • v1.0.2
      • 49.57
      • Published

      pad-right

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

      • v0.2.2
      • 49.57
      • Published

      sprintf-kit

      sprintf parser and basic formatter

      • v2.0.2
      • 49.55
      • 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
      • 49.39
      • Published

      ansi-cyan

      The color cyan, in ansi.

      • v0.1.1
      • 49.23
      • Published

      diacritics

      remove diacritics from strings

      • v1.3.0
      • 48.94
      • Published

      ansi-red

      The color red, in ansi.

      • v0.1.1
      • 48.91
      • Published

      case

      Extensible string utility for converting, identifying and flipping string case

      • v1.6.3
      • 48.79
      • Published

      ukkonen

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

      • v2.2.0
      • 48.63
      • Published

      js-levenshtein-esm

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

      • v2.0.0
      • 48.52
      • Published

      tweetnacl-util

      String encoding utilitlies extracted from TweetNaCl.js

      • v0.15.1
      • 48.49
      • Published

      to-space-case

      Convert a string to space case.

      • v1.0.0
      • 48.46
      • Published

      nlcst-to-string

      nlcst utility to transform a tree to a string

      • v4.0.0
      • 48.42
      • Published

      @jsonjoy.com/buffers

      Various helper utilities for working with buffers and binary data

      • v1.0.0
      • 48.38
      • Published

      unescape

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

      • v1.0.1
      • 48.08
      • Published

      @hapi/formula

      Math and string formula parser.

      • v3.0.2
      • 48.04
      • Published

      string-format

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

      • v2.0.0
      • 47.95
      • Published

      is-alphanumeric

      Check if a string only contains alphanumeric characters

      • v1.0.0
      • 47.72
      • Published

      serialised-error

      Serialises error object to normal object

      • v1.1.3
      • 47.51
      • Published

      string.prototype.codepointat

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

      • v1.0.1
      • 47.41
      • Published

      mudder

      Find lexicographical points between strings

      • v2.1.1
      • 47.40
      • Published

      line-column

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

      • v1.0.2
      • 47.36
      • Published

      trim-off-newlines

      Similar to String#trim() but removes only newlines

      • v1.0.3
      • 47.28
      • Published

      format-util

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

      • v1.0.5
      • 47.25
      • Published

      tamedevil

      Build and evaluate JavaScript strings safely via tagged template literals

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

      temp-write

      Write data to a random temporary file

      • v6.0.0
      • 47.16
      • Published