[go: up one dir, main page]

Search results

511 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 ago2506 dependents licensed under $MIT
143,112,377

Get the shortest leading whitespace from lines in a string

published version 1.0.1, 5 years ago775 dependents licensed under $MIT
81,584,706

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

published version 2.0.0, 4 years ago52 dependents licensed under $MIT
18,320,823

Similar to String#trim() but removes only newlines

published version 1.0.3, 3 years ago111 dependents licensed under $MIT
3,590,796

Iterator over lines in a string

published version 1.1.0, 9 years ago4 dependents licensed under $MIT
1,691,440

Generate string from a token array by interpolating values.

published version 0.2.2, 4 months ago2 dependents licensed under $Apache-2.0
1,660,694

Test if a value is a regular expression string.

published version 0.2.2, 4 months ago72 dependents licensed under $Apache-2.0
1,358,613

Convert a string to lowercase.

published version 0.3.0, 4 months ago12 dependents licensed under $Apache-2.0
1,358,158

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

published version 0.2.2, 4 months ago2 dependents licensed under $Apache-2.0
1,673,684

Convert between POSIX and Windows paths.

published version 0.2.2, 4 months ago5 dependents licensed under $Apache-2.0
1,702,358

Test if a value is a string.

published version 0.2.2, 4 months ago278 dependents licensed under $Apache-2.0
1,772,921

Replace search occurrences with a replacement string.

published version 0.2.2, 4 months ago20 dependents licensed under $Apache-2.0
1,644,636

Insert supplied variable values into a format string.

published version 0.2.2, 4 months ago941 dependents licensed under $Apache-2.0
1,737,493

Allocate a buffer containing a provided string.

published version 0.2.2, 4 months ago92 dependents licensed under $Apache-2.0
1,419,374

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

published version 1.0.1, 10 years ago37 dependents licensed under $MIT
974,424

Convert a string into a stream (streams2)

published version 3.0.1, 5 years ago261 dependents licensed under $MIT
1,135,653

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, a year ago97 dependents licensed under $MIT
565,352

3x as fast as `is-whitespace` and `whitespace-regex` thanks to `is-string-blank`. This package is a simple function that accepts an argument and returns `true` if it is a string AND it is not blank. Supports Node and Browser environments.

published version 0.0.2, 5 years ago29 dependents licensed under $MIT
503,178

Split lines into an array of lines

published version 3.0.0, 4 years ago87 dependents licensed under $MIT
532,853

Safely remove repeating whitespace from HTML text.

published version 1.0.0, 6 years ago20 dependents licensed under $MIT
459,253