Search results

1000+ packages found

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

published version 5.0.0, 4 years ago1992 dependents licensed under $MIT
439,984,491

Parse JSON with more helpful errors

published version 8.3.0, 3 months ago1767 dependents licensed under $MIT
412,452,763

Small function for interpolating variables into javascript strings.

published version 1.3.0, 8 years ago5 dependents licensed under $Apache-2.0
45

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

published version 8.0.0, 2 years ago6757 dependents licensed under $MIT
575,130,381

Replace in string pattern by variables. Throw error if variables is not string or number.

published version 0.0.1, 9 years ago2 dependents licensed under $MIT
17

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

published version 9.0.1, a year ago2370 dependents licensed under $MIT
601,010,524

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

published version 3.1.0, 7 months ago1937 dependents licensed under $MIT
445,454,315

ANSI escape codes for manipulating the terminal

published version 7.0.0, a year ago2552 dependents licensed under $MIT
362,537,995

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, 4 years ago2736 dependents licensed under $MIT
421,429,727

Returns true if a string has an extglob.

published version 2.1.1, 9 years ago2193 dependents licensed under $MIT
340,637,458

Strip the final newline character from a string or Uint8Array

published version 4.0.0, 2 years ago1263 dependents licensed under $MIT
305,644,819

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 ago1686 dependents licensed under $MIT
329,827,696

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

published version 3.1.3, 3 years ago2417 dependents licensed under $ISC
360,066,308

Slice a string with ANSI escape codes

published version 7.1.0, 2 years ago900 dependents licensed under $MIT
317,892,988

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

published version 3.0.0, 5 years ago1834 dependents licensed under $MIT
282,476,831

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

published version 1.3.0, 7 months ago1232 dependents licensed under $MIT
213,329,879

Indent each line in a string

published version 5.0.0, 4 years ago1658 dependents licensed under $MIT
275,312,240

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

published version 1.4.0, 9 years ago1595 dependents licensed under $MIT
258,775,147

Modify strings, generate sourcemaps

published version 0.30.17, 7 months ago2784 dependents licensed under $MIT
242,264,017

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

published version 6.0.0, 4 years ago1905 dependents licensed under $MIT
222,306,267