Search results

1000+ packages found

Strip ANSI escape codes from a string

published version 7.1.0, 2 years ago9526 dependents licensed under $MIT
1,310,368,529

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

published version 5.0.0, 4 years ago1995 dependents licensed under $MIT
443,532,172

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

published version 5.0.2, 2 months ago3009 dependents licensed under $MIT
425,622,101

ES2019 spec-compliant String.prototype.trimEnd shim.

published version 1.0.9, 7 months ago1166 dependents licensed under $MIT
212,073,446

Strip the final newline character from a string or Uint8Array

published version 4.0.0, 2 years ago1267 dependents licensed under $MIT
302,381,078

ES2019 spec-compliant String.prototype.trimStart shim.

published version 1.0.8, a year ago1156 dependents licensed under $MIT
207,183,060

Normalize a URL

published version 8.0.2, a month ago1546 dependents licensed under $MIT
167,208,765

Strip redundant indentation and indent the string

published version 4.0.0, 4 years ago818 dependents licensed under $MIT
149,247,994

ES5 spec-compliant shim for String.prototype.trim

published version 1.2.10, 7 months ago786 dependents licensed under $MIT
166,220,172

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

published version 5.0.0, 2 years ago583 dependents licensed under $MIT
93,246,166

Remove spaces and tabs around line-breaks

published version 3.0.1, 3 years ago22 dependents licensed under $MIT
29,970,213

Strip a substring from the start/end of a string

published version 2.0.0, 4 years ago53 dependents licensed under $MIT
19,858,871

ES2017 spec-compliant String.prototype.padEnd shim.

published version 3.1.6, a year ago128 dependents licensed under $MIT
27,139,273

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

published version 2.0.0, 4 years ago48 dependents licensed under $MIT
19,909,304

Deprecated. Utilities for ES3, most of which have been adopted or superseded in ES5.1. Adapted from Douglas Crockford's Remedial JavaScript

published version 1.0.8, 7 years ago23 dependents licensed under $(MIT OR Apache-2.0)
13,971,929

ES2019 spec-compliant String.prototype.trimLeft shim.

published version 2.1.3, 5 years ago52 dependents licensed under $MIT
10,933,985

Remove final line feeds from a string

published version 2.1.0, 3 years ago51 dependents licensed under $MIT
14,134,422

ES2017 spec-compliant String.prototype.padStart shim.

published version 3.1.7, 4 months ago182 dependents licensed under $MIT
9,425,781

Similar to String#trim() but removes only newlines

published version 1.0.3, 4 years ago75 dependents licensed under $MIT
8,643,786

ES2019 spec-compliant String.prototype.trimLeft shim.

published version 2.1.3, 5 years ago51 dependents licensed under $MIT
10,925,916