Search results

1000+ packages found

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

published version 3.1.0, a month ago2021 dependents licensed under $MIT
226,554,386

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

published version 5.0.0, 4 years ago2098 dependents licensed under $MIT
215,270,528

Parse JSON with more helpful errors

published version 8.1.0, a year ago1856 dependents licensed under $MIT
200,488,082

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 ago2851 dependents licensed under $MIT
209,669,180

Modify strings, generate sourcemaps

published version 0.30.17, a month ago2681 dependents licensed under $MIT
126,791,939

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

published version 3.1.3, 2 years ago2545 dependents licensed under $ISC
178,286,852

ANSI escape codes for manipulating the terminal

published version 7.0.0, 8 months ago2631 dependents licensed under $MIT
181,171,842

Returns true if a string has an extglob.

published version 2.1.1, 8 years ago2296 dependents licensed under $MIT
175,572,860

Slice a string with ANSI escape codes

published version 7.1.0, a year ago1009 dependents licensed under $MIT
164,416,149

Strip the final newline character from a string or Uint8Array

published version 4.0.0, a year ago1329 dependents licensed under $MIT
166,100,947

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 ago1824 dependents licensed under $MIT
158,477,012

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 ago1704 dependents licensed under $MIT
124,050,367

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

published version 1.3.0, 2 months ago1349 dependents licensed under $MIT
108,003,108

Indent each line in a string

published version 5.0.0, 4 years ago1740 dependents licensed under $MIT
139,436,665

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

published version 3.0.0, 4 years ago1945 dependents licensed under $MIT
136,524,603

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

published version 6.0.0, 3 years ago2057 dependents licensed under $MIT
113,212,656

ES5 spec-compliant shim for String.prototype.trim

published version 1.2.10, a month ago791 dependents licensed under $MIT
97,425,529

Querystringify - Small, simple but powerful query string parser.

published version 2.2.0, 4 years ago648 dependents licensed under $MIT
74,820,281

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

published version 1.2.0, 6 years ago2331 dependents licensed under $MIT
72,444,847

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

published version 1.1.1, a month ago1507 dependents licensed under $MIT
113,292,260