JSPM

Found 9321 results for string formatter

formatter

Simple String Variable Replacement Formatter

  • v0.4.2
  • 1093.48
  • Published

sprintf-kit

sprintf parser and basic formatter

  • v2.0.2
  • 392.25
  • Published

diffable-html

Opinionated HTML formatter focused towards making HTML diffs readable.

  • v6.0.1
  • 371.20
  • Published

string-mask

A string formatter and validator based on masks

  • v0.3.0
  • 242.33
  • Published

ng-number-formatter

Angular Number Formatter - formats the number into human readable format when in Thousands, Millions and Billions.

    • v3.2.1
    • 191.25
    • Published

    string-kit

    A string manipulation toolbox, featuring a string formatter (inspired by sprintf), a variable inspector (output featuring ANSI colors and HTML) and various escape functions (shell argument, regexp, html, etc).

    • v0.19.2
    • 177.47
    • Published

    format-quantity

    Number formatter for imperial measurements with support for vulgar fractions

    • v3.0.0
    • 144.50
    • Published

    fmtr

    awesome string formatter

    • v1.1.4
    • 137.75
    • Published

    @wbce-d9/format-title

    Custom string formatter that converts any string into [Title Case](http://www.grammar-monster.com/lessons/capital_letters_title_case.htm)

    • v10.0.0
    • 98.26
    • Published

    error-formatter

    format an error into string / json for log

    • v1.0.5
    • 95.68
    • Published

    case-formatter

    Simple converters from case to case for string and Record. It can canvert below cases each other.

    • v1.1.2
    • 88.76
    • Published

    fmat

    A barebones yet feature-rich string formatter.

    • v1.0.5
    • 82.80
    • Published

    maskara

    A string formatter and validator based on masks

    • v0.4.2
    • 79.76
    • Published

    @webgap/format-utils

    Common formatter utilities to handle numbers, dates, times, etc.

    • v0.2.5
    • 70.60
    • Published

    ansi-styles

    ANSI escape codes for styling strings in the terminal

    • v6.2.1
    • 66.94
    • Published

    strip-ansi

    Strip ANSI escape codes from a string

    • v7.1.0
    • 66.47
    • Published

    chalk

    Terminal string styling done right

    • v5.4.1
    • 66.31
    • Published

    @skuhnow/directus-format-title

    Custom string formatter that converts any string into [Title Case](http://www.grammar-monster.com/lessons/capital_letters_title_case.htm)

    • v9.14.4
    • 66.27
    • Published

    ansi-regex

    Regular expression for matching ANSI escape codes

    • v6.1.0
    • 65.24
    • Published

    string-width

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

    • v7.2.0
    • 64.92
    • Published

    wrap-ansi

    Wordwrap a string with ANSI escape codes

    • v9.0.0
    • 64.79
    • Published

    kind-of

    Get the native type of a value.

    • v6.0.3
    • 64.30
    • Published

    is-fullwidth-code-point

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

    • v5.0.0
    • 63.51
    • Published

    string_decoder

    The string_decoder module from Node core

    • v1.3.0
    • 63.49
    • Published

    parsist

    Raw text parser, cleaner and formatter

    • v1.0.6
    • 62.96
    • Published

    get-stream

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

    • v9.0.1
    • 62.71
    • Published

    strip-bom

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

    • v5.0.0
    • 62.69
    • Published

    camelcase

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

    • v8.0.0
    • 62.61
    • Published

    parse-json

    Parse JSON with more helpful errors

    • v8.3.0
    • 62.44
    • Published

    jsesc

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

    • v3.1.0
    • 62.43
    • Published

    magic-string

    Modify strings, generate sourcemaps

    • v0.30.17
    • 61.60
    • 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
    • 61.46
    • Published

    is-extglob

    Returns true if a string has an extglob.

    • v2.1.1
    • 61.27
    • Published

    ansi-escapes

    ANSI escape codes for manipulating the terminal

    • v7.0.0
    • 61.17
    • Published

    slice-ansi

    Slice a string with ANSI escape codes

    • v7.1.0
    • 61.00
    • Published

    anymatch

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

    • v3.1.3
    • 60.92
    • 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
    • 60.88
    • Published

    strip-final-newline

    Strip the final newline character from a string or Uint8Array

    • v4.0.0
    • 60.78
    • Published

    fast-levenshtein

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

    • v3.0.0
    • 60.42
    • Published

    es-to-primitive

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

    • v1.3.0
    • 60.40
    • Published

    indent-string

    Indent each line in a string

    • v5.0.0
    • 60.28
    • 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
    • 60.25
    • Published

    quosnam

    Opinionated HTML formatter focused towards making HTML diffs readable.

    • v1.2.2
    • 60.16
    • Published

    @jodzjcm/string-format

    A string formatter inspired by Angular's text interpolation.

    • v1.2.0
    • 59.84
    • 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
    • 59.80
    • Published

    decamelize

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

    • v6.0.0
    • 59.51
    • 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.29
    • Published

    querystringify

    Querystringify - Small, simple but powerful query string parser.

    • v2.2.0
    • 59.28
    • Published

    he

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

    • v1.2.0
    • 59.28
    • Published

    string-length

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

    • v6.0.0
    • 59.17
    • Published

    leven

    Measure the difference between two strings using the Levenshtein distance algorithm

    • v4.0.0
    • 58.94
    • Published

    cssesc

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

    • v3.0.0
    • 58.84
    • Published

    strnum

    Parse String to Number based on configuration

    • v2.1.0
    • 58.78
    • Published

    strip-indent

    Strip leading whitespace from each line in a string

    • v4.0.0
    • 58.61
    • Published

    url-parse

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

    • v1.5.10
    • 58.43
    • Published

    has-value

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

    • v2.0.2
    • 58.38
    • Published

    cli-truncate

    Truncate a string to a specific width in the terminal

    • v4.0.0
    • 58.09
    • 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.08
    • Published

    redent

    Strip redundant indentation and indent the string

    • v4.0.0
    • 58.07
    • Published

    stringf

    Dead simple string formatter

    • v1.0.4
    • 57.83
    • Published

    min-indent

    Get the shortest leading whitespace from lines in a string

    • v1.0.1
    • 57.80
    • Published

    unique-string

    Generate a unique random string

    • v3.0.0
    • 57.77
    • Published

    repeat-string

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

    • v1.6.1
    • 57.63
    • Published

    detect-indent

    Detect the indentation of code

    • v7.0.1
    • 57.32
    • Published

    trim-newlines

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

    • v5.0.0
    • 57.26
    • Published

    css.escape

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

    • v1.5.1
    • 57.17
    • Published

    has-ansi

    Check if a string has ANSI escape codes

    • v6.0.0
    • 57.13
    • Published

    own-keys

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

    • v1.0.1
    • 57.01
    • Published

    string.prototype.repeat

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

    • v1.0.0
    • 56.94
    • Published

    camelcase-keys

    Convert object keys to camel case

    • v9.1.3
    • 56.90
    • Published

    mdast-util-to-string

    mdast utility to get the plain text content of a node

    • v4.0.0
    • 56.80
    • Published

    query-string

    Parse and stringify URL query strings

    • v9.1.2
    • 56.60
    • Published

    common-tags

    a few common utility template tags for ES2015

    • v1.8.2
    • 56.60
    • 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
    • 56.58
    • Published

    pg-connection-string

    Functions for dealing with a PostgresSQL connection string

    • v2.8.5
    • 56.39
    • Published

    wildcard

    Wildcard matching tools

    • v2.0.1
    • 56.39
    • Published

    get-east-asian-width

    Determine the East Asian Width of a Unicode character

    • v1.3.0
    • 56.29
    • Published

    fastest-levenshtein

    Fastest Levenshtein distance implementation in JS.

    • v1.0.16
    • 56.20
    • Published

    lz-string

    LZ-based compression algorithm

    • v1.5.0
    • 56.13
    • Published

    split-string

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

    • v6.1.0
    • 56.11
    • Published

    @igor.dvlpr/zing

    🐌 Zing is a C# style String formatter for JavaScript that empowers Strings with positional arguments - composite formatting. 🚀

    • v2.0.1
    • 56.03
    • Published

    string.prototype.includes

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

    • v2.0.1
    • 56.01
    • Published

    gzip-size

    Get the gzipped size of a string or buffer

    • v7.0.0
    • 55.84
    • Published

    pascalcase

    Convert a string to pascal case (upper camelcase).

    • v2.0.0
    • 55.56
    • Published

    is-decimal

    Check if a character is decimal

    • v2.0.1
    • 55.39
    • Published

    repeat-element

    Create an array by repeating the given value n times.

    • v1.1.4
    • 55.34
    • Published

    is-hexadecimal

    Check if a character is hexadecimal

    • v2.0.1
    • 55.33
    • Published

    decamelize-keys

    Convert object keys from camel case

    • v2.0.1
    • 55.31
    • Published

    is-alphabetical

    Check if a character is alphabetical

    • v2.0.1
    • 55.26
    • Published

    ripemd160

    Compute ripemd160 of bytes or strings.

    • v2.0.2
    • 55.23
    • Published

    pretty-ms

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

    • v9.2.0
    • 54.93
    • Published

    regex-parser

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

    • v2.3.1
    • 54.92
    • 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
    • 54.85
    • Published

    date-format

    Formatting Date objects as strings since 2013

    • v4.0.14
    • 54.48
    • Published

    typical

    Isomorphic, functional type-checking for Javascript

    • v7.3.0
    • 54.25
    • Published

    yoctocolors-cjs

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

    • v2.1.2
    • 54.21
    • Published

    os-locale

    Get the system locale

    • v6.0.2
    • 54.10
    • Published

    split-on-first

    Split a string on the first occurance of a given separator

    • v3.0.0
    • 53.94
    • Published

    hasha

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

    • v6.0.0
    • 53.91
    • Published

    pupa

    Simple micro templating

    • v3.1.0
    • 53.69
    • Published

    unquote

    Remove wrapping quotes from a string.

    • v1.1.1
    • 53.65
    • Published

    string-natural-compare

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

    • v3.0.1
    • 53.50
    • Published

    filenamify

    Convert a string to a valid safe filename

    • v6.0.0
    • 53.38
    • Published

    js-levenshtein

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

    • v1.1.6
    • 53.23
    • Published

    lcid

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

    • v5.0.0
    • 53.08
    • Published

    dullstring

    A dull string formatter

    • v1.0.1
    • 53.03
    • Published

    repeating

    Repeat a string - fast

    • v4.0.0
    • 52.69
    • Published

    fault

    Functional errors with formatted output

    • v2.0.1
    • 52.50
    • Published

    trim-repeated

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

    • v2.0.0
    • 52.38
    • Published

    index-to-position

    Convert a string index to its line and column position

    • v1.1.0
    • 52.21
    • Published

    into-stream

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

    • v8.0.1
    • 52.13
    • Published

    strip-outer

    Strip a substring from the start/end of a string

    • v2.0.0
    • 51.97
    • Published

    chalk-template

    Terminal string styling with tagged template literals

    • v1.1.0
    • 51.80
    • Published

    ansicolors

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

    • v0.3.2
    • 51.65
    • Published

    titleize

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

    • v4.0.0
    • 51.56
    • Published

    matcher

    Simple wildcard matching

    • v5.0.0
    • 51.40
    • Published

    is-primitive

    Returns `true` if the value is a primitive.

    • v3.0.1
    • 51.38
    • Published

    js-string-escape

    Escape strings for use as JavaScript string literals

    • v1.0.1
    • 51.20
    • Published

    iterate-value

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

    • v1.0.2
    • 51.08
    • Published

    eol

    Newline character converter

    • v0.10.0
    • 51.03
    • Published

    yoctocolors

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

    • v2.1.1
    • 50.96
    • Published

    dom-serialize

    Serializes any DOM node into a String

    • v2.2.1
    • 50.76
    • Published

    outdent

    Remove leading indentation from ES6 template literals.

    • v0.8.0
    • 50.72
    • Published

    hast-util-to-string

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

    • v3.0.1
    • 50.67
    • Published

    plur

    Pluralize a word

    • v5.1.0
    • 50.63
    • Published

    string-hash

    fast string hashing function

    • v1.1.3
    • 50.52
    • Published

    str-f7r

    A JavaScript String Formatter

    • v1.2.2
    • 50.44
    • Published

    is-invalid-path

    Returns true if a windows file path has invalid characters.

    • v1.0.2
    • 50.44
    • Published

    natural-orderby

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

    • v5.0.0
    • 50.35
    • Published

    ansi-gray

    The color gray, in ansi.

    • v0.1.1
    • 50.31
    • Published

    javascript-stringify

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

    • v2.1.0
    • 50.24
    • Published

    string-template

    A simple string template function based on named or indexed arguments

    • v1.0.0
    • 50.18
    • Published

    strip-bom-string

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

    • v1.0.0
    • 50.16
    • Published

    is-url-superb

    Check if a string is a URL

    • v6.1.0
    • 50.12
    • 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.03
    • Published

    object-treeify

    Stringify Object as tree structure

    • v5.0.1
    • 50.01
    • Published

    is-word-character

    Check if a character is a word character

    • v2.0.1
    • 49.95
    • Published

    underscore.string

    String manipulation extensions for Underscore.js javascript library.

    • v3.3.6
    • 49.78
    • Published

    elegant-spinner

    Elegant spinner for interactive CLI apps

    • v3.0.0
    • 49.67
    • Published

    uint8array-extras

    Useful utilities for working with Uint8Array (and Buffer)

    • v1.4.0
    • 49.57
    • Published

    locate-character

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

    • v3.0.0
    • 49.53
    • Published

    is-svg

    Check if a string is SVG

    • v6.0.0
    • 49.30
    • Published

    html-comment-regex

    Regular expression for matching HTML comments

    • v1.1.2
    • 49.24
    • Published

    execall

    Find multiple RegExp matches in a string

    • v3.0.0
    • 49.15
    • Published

    murmurhash-js

    Native JS murmur hash implementation

    • v1.0.0
    • 49.15
    • Published

    printj

    Pure-JS printf

    • v1.3.1
    • 49.14
    • Published

    hast-util-to-text

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

    • v4.0.2
    • 48.66
    • Published

    pad-right

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

    • v0.2.2
    • 48.39
    • Published

    is-valid-path

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

    • v0.1.1
    • 48.35
    • Published

    string.fromcodepoint

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

    • v1.0.3
    • 48.31
    • Published

    has-glob

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

    • v1.0.0
    • 48.29
    • Published

    is-whitespace

    Returns true if the value passed is all whitespace.

    • v0.3.0
    • 48.18
    • Published

    to-no-case

    Remove any existing casing from a string.

    • v1.0.2
    • 48.08
    • Published

    gradient-string

    Beautiful color gradients in terminal output

    • v3.0.0
    • 48.03
    • Published

    is-ip

    Check if a string is an IP address

    • v5.0.1
    • 47.90
    • Published

    case

    Extensible string utility for converting, identifying and flipping string case

    • v1.6.3
    • 47.82
    • Published

    ansi-cyan

    The color cyan, in ansi.

    • v0.1.1
    • 47.70
    • Published

    ansi-red

    The color red, in ansi.

    • v0.1.1
    • 47.67
    • Published

    to-space-case

    Convert a string to space case.

    • v1.0.0
    • 47.44
    • Published

    tweetnacl-util

    String encoding utilitlies extracted from TweetNaCl.js

    • v0.15.1
    • 47.44
    • Published

    diacritics

    remove diacritics from strings

    • v1.3.0
    • 47.35
    • Published

    unescape

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

    • v1.0.1
    • 47.27
    • Published

    nlcst-to-string

    nlcst utility to transform a tree to a string

    • v4.0.0
    • 47.05
    • Published

    string-format

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

    • v2.0.0
    • 46.83
    • 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
    • 46.81
    • Published

    string.prototype.codepointat

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

    • v1.0.1
    • 46.49
    • Published

    serialised-error

    Serialises error object to normal object

    • v1.1.3
    • 46.44
    • Published

    temp-write

    Write data to a random temporary file

    • v6.0.0
    • 46.41
    • Published

    strmat

    String formatter like python in Nodejs

    • v1.1.0
    • 46.36
    • Published

    format-util

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

    • v1.0.5
    • 46.28
    • Published

    js-number-formatter

    A javascript module that scans through string to remove non-numerals and formats out any found numbers based on configuration passed to it.

    • v2.1.0
    • 46.07
    • Published

    is-alphanumeric

    Check if a string only contains alphanumeric characters

    • v1.0.0
    • 45.98
    • Published

    trim-off-newlines

    Similar to String#trim() but removes only newlines

    • v1.0.3
    • 45.95
    • Published

    to-camel-case

    Convert a string to camel case.

    • v1.0.0
    • 45.92
    • Published

    line-column

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

    • v1.0.2
    • 45.90
    • Published

    @hapi/formula

    Math and string formula parser.

    • v3.0.2
    • 45.67
    • Published

    chai-string

    strings comparison matchers for chai

    • v1.6.0
    • 45.32
    • Published

    stringz

    Zero-dependency unicode-aware string tools

    • v2.1.0
    • 45.23
    • 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.18
    • Published

    is-html

    Check if a string is HTML

    • v3.1.0
    • 44.88
    • Published

    fast-stream-to-buffer

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

    • v1.0.0
    • 44.75
    • 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
    • 44.64
    • Published

    @stdlib/regexp-regexp

    Return a regular expression to parse a regular expression string.

    • v0.2.2
    • 44.58
    • Published

    next-line

    Iterator over lines in a string

    • v1.1.0
    • 44.57
    • Published

    ansi-blue

    The color blue, in ansi.

    • v0.1.1
    • 44.55
    • 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
    • 44.43
    • Published

    get-object

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

    • v0.2.0
    • 44.29
    • Published

    xhr-request

    tiny http client for Node and the browser

    • v1.1.0
    • 44.19
    • Published

    slug

    slugifies even utf-8 chars!

    • v10.0.0
    • 44.16
    • Published

    url-regex

    Regular expression for matching URLs

    • v5.0.0
    • 44.14
    • Published

    pad-component

    Pad strings to a given length

      • v0.0.1
      • 44.11
      • Published

      number-to-words

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

      • v1.2.4
      • 44.10
      • 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.08
      • Published

      react-from-dom

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

      • v0.7.5
      • 44.04
      • Published

      parse-unit

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

      • v1.0.1
      • 44.03
      • Published

      humanize-string

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

      • v3.0.0
      • 44.02
      • Published

      url-set-query

      small function to append a query string to a URL

      • v1.0.0
      • 44.02
      • Published

      unicode-length

      Get the length of unicode strings

      • v2.1.0
      • 43.99
      • Published

      string-to-stream

      Convert a string into a stream (streams2)

      • v3.0.1
      • 43.89
      • Published

      esrever

      A fully Unicode-aware string reverser written in JavaScript.

      • v0.2.0
      • 43.74
      • Published