Search results

513 packages found

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 ago2548 dependents licensed under $MIT
128,746,447

Get the shortest leading whitespace from lines in a string

published version 1.0.1, 5 years ago792 dependents licensed under $MIT
81,200,210

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

published version 2.0.0, 4 years ago51 dependents licensed under $MIT
17,347,489

Generate string from a token array by interpolating values.

published version 0.2.2, 7 months ago2 dependents licensed under $Apache-2.0
1,828,730

Iterator over lines in a string

published version 1.1.0, 9 years ago4 dependents licensed under $MIT
1,671,758

Convert between POSIX and Windows paths.

published version 0.2.2, 7 months ago5 dependents licensed under $Apache-2.0
1,790,342

Test if a value is a string.

published version 0.2.2, 7 months ago278 dependents licensed under $Apache-2.0
1,799,996

Insert supplied variable values into a format string.

published version 0.2.2, 7 months ago941 dependents licensed under $Apache-2.0
1,787,925

Test if a value is a regular expression string.

published version 0.2.2, 7 months ago72 dependents licensed under $Apache-2.0
1,291,778

Convert a string to lowercase.

published version 0.3.0, 7 months ago12 dependents licensed under $Apache-2.0
1,293,838

Replace search occurrences with a replacement string.

published version 0.2.2, 7 months ago20 dependents licensed under $Apache-2.0
1,737,615

Tokenize a string into an array of string parts and format identifier objects.

published version 0.2.2, 7 months ago2 dependents licensed under $Apache-2.0
1,843,803

Similar to String#trim() but removes only newlines

published version 1.0.3, 3 years ago113 dependents licensed under $MIT
1,150,976

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

published version 1.0.1, 10 years ago36 dependents licensed under $MIT
1,040,938

Allocate a buffer containing a provided string.

published version 0.2.2, 7 months ago92 dependents licensed under $Apache-2.0
1,301,330

Regular expression matching for URL's. Maintained, safe, and browser-friendly version of url-regex. Resolves CVE-2020-7661. Works in Node v10.12.0+ and browsers.

published version 4.0.0, 2 years ago93 dependents licensed under $MIT
664,903

Convert a string into a stream (streams2)

published version 3.0.1, 5 years ago264 dependents licensed under $MIT
965,477

Convert a string to lowercase.

published version 0.4.0, 7 months ago15 dependents licensed under $Apache-2.0
443,206

Split lines into an array of lines

published version 3.0.0, 4 years ago88 dependents licensed under $MIT
471,554

Replace search occurrences with a replacement string.

published version 0.2.2, 7 months ago27 dependents licensed under $Apache-2.0
455,662