Search results

1000+ packages found

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

published version 5.0.0, 4 years ago2080 dependents licensed under $MIT
312,471,717

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

published version 3.1.0, 3 days ago2000 dependents licensed under $MIT
309,356,989

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

published version 4.0.3, 3 years ago2820 dependents licensed under $MIT
299,285,804

Parse JSON with more helpful errors

published version 8.1.0, a year ago1841 dependents licensed under $MIT
287,197,340

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

published version 3.1.3, 2 years ago2525 dependents licensed under $ISC
260,195,672

Returns true if a string has an extglob.

published version 2.1.1, 8 years ago2270 dependents licensed under $MIT
245,265,082

ANSI escape codes for manipulating the terminal

published version 7.0.0, 7 months ago2612 dependents licensed under $MIT
255,822,274

Slice a string with ANSI escape codes

published version 7.1.0, a year ago999 dependents licensed under $MIT
236,067,038

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.

published version 1.2.1, 5 years ago1804 dependents licensed under $MIT
230,944,969

Modify strings, generate sourcemaps

published version 0.30.15, 5 days ago2629 dependents licensed under $MIT
168,655,950

Strip the final newline character from a string or Uint8Array

published version 4.0.0, a year ago1319 dependents licensed under $MIT
221,364,440

Indent each line in a string

published version 5.0.0, 4 years ago1726 dependents licensed under $MIT
202,784,397

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

published version 1.4.0, 8 years ago1679 dependents licensed under $MIT
169,527,377

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

published version 6.0.0, 3 years ago2043 dependents licensed under $MIT
168,356,180

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

published version 1.3.0, 18 days ago1337 dependents licensed under $MIT
151,650,769

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

published version 1.1.0, 13 days ago1493 dependents licensed under $MIT
149,008,685

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

published version 4.1.3, 3 years ago2515 dependents licensed under $MIT
144,072,639

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

published version 6.0.0, 2 years ago1166 dependents licensed under $MIT
132,109,194

Querystringify - Small, simple but powerful query string parser.

published version 2.2.0, 4 years ago646 dependents licensed under $MIT
101,391,018

Strip leading whitespace from each line in a string

published version 4.0.0, 4 years ago1276 dependents licensed under $MIT
127,843,959