Search results

423 packages found

Extract the non-magic parent path from a glob string.

published version 6.0.2, 4 years ago2707 dependents licensed under $ISC
618,342,378

Strip the final newline character from a string or Uint8Array

published version 4.0.0, 2 years ago1375 dependents licensed under $MIT
277,330,439

Strip ANSI escape codes from a string

published version 7.1.0, 2 years ago9696 dependents licensed under $MIT
1,165,380,084

Strip comments from JSON. Lets you use comments in your JSON files!

published version 5.0.2, a month ago3177 dependents licensed under $MIT
386,124,444

Strip redundant indentation and indent the string

published version 4.0.0, 4 years ago907 dependents licensed under $MIT
130,424,462

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

published version 5.0.0, 4 years ago2147 dependents licensed under $MIT
387,081,684

Strip leading whitespace from each line in a string

published version 4.0.0, 4 years ago1315 dependents licensed under $MIT
163,919,324

a few common utility template tags for ES2015

published version 1.8.2, 4 years ago1511 dependents licensed under $MIT
63,372,001

Normalize a URL

published version 8.0.2, 12 days ago1655 dependents licensed under $MIT
149,514,612

Removes separators from the end of the string.

published version 1.1.0, 8 years ago688 dependents licensed under $ISC
70,711,038

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

published version 5.0.0, 2 years ago673 dependents licensed under $MIT
80,417,885

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

published version 2.0.0, 4 years ago52 dependents licensed under $MIT
18,839,285

Remove leading directory components from a path, like tar's --strip-components option

published version 3.0.0, 7 years ago55 dependents licensed under $ISC
17,703,960

Strip a byte order mark (BOM) from a string.

published version 1.0.0, 8 years ago36 dependents licensed under $MIT
11,092,305

Strip a substring from the start/end of a string

published version 2.0.0, 4 years ago57 dependents licensed under $MIT
18,788,910

Strip line and/or block comments from a string. Blazing fast, and works with JavaScript, Sass, CSS, Less.js, and a number of other languages.

published version 2.0.1, 6 years ago432 dependents licensed under $MIT
22,577,270

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

published version 5.0.0, 4 years ago96 dependents licensed under $MIT
6,408,429

Add or remove backslashes (escape or unescape).

published version 3.0.12, 3 years ago73 dependents licensed under $ISC
4,726,090

unist utility to remove nodes from a tree

published version 4.0.0, 2 years ago232 dependents licensed under $MIT
10,187,244

Remove a byte order mark (BOM) from a buffer.

published version 3.0.0, 8 years ago29 dependents licensed under $MIT
6,449,233