Search results

1000+ packages found

Truncate a string to a specific width in the terminal

published version 4.0.0, 2 years ago413 dependents licensed under $MIT
120,660,254

ES5 spec-compliant shim for String.prototype.trim

published version 1.2.10, 6 months ago819 dependents licensed under $MIT
153,349,487

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

published version 3.0.0, 6 years ago938 dependents licensed under $MIT
153,685,425

Generate a unique random string

published version 3.0.0, 4 years ago724 dependents licensed under $MIT
87,976,509

Querystringify - Small, simple but powerful query string parser.

published version 2.2.0, 5 years ago665 dependents licensed under $MIT
115,049,306

Compile regular expressions' unicodeSets (v) flag.

published version 7.27.1, 2 months ago5 dependents licensed under $MIT
84,626,900

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

published version 5.0.0, 2 years ago673 dependents licensed under $MIT
83,698,478

Detect the indentation of code

published version 7.0.1, 3 years ago1020 dependents licensed under $MIT
79,501,713

Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.

published version 2.0.1, 7 years ago818 dependents licensed under $MIT
127,632,457

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

published version 2.0.2, 7 years ago855 dependents licensed under $MIT
127,273,645

Strip redundant indentation and indent the string

published version 4.0.0, 4 years ago907 dependents licensed under $MIT
133,900,107

Parse String to Number based on configuration

published version 2.1.1, a month ago225 dependents licensed under $MIT
97,107,680

Get the shortest leading whitespace from lines in a string

published version 1.0.1, 5 years ago806 dependents licensed under $MIT
113,762,643

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

published version 1.5.10, 3 years ago3154 dependents licensed under $MIT
111,990,018

Generate a cryptographically strong random string

published version 5.0.0, 3 years ago1125 dependents licensed under $MIT
88,939,450

Simple, light-weight assertions framework for javascript

published version 2.0.1, 7 years ago2 dependents licensed under $MIT
14,589

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

published version 5.0.0, 2 years ago596 dependents licensed under $MIT
80,468,941

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

published version 1.6.1, 9 years ago1084 dependents licensed under $MIT
97,362,494

Convert object keys to camel case

published version 9.1.3, a year ago1321 dependents licensed under $MIT
89,597,693

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

published version 1.0.0, 5 years ago103 dependents licensed under $MIT
59,119,699