Search results

1000+ packages found

Strip ANSI escape codes from a string

published version 7.1.0, 2 years ago9672 dependents licensed under $MIT
1,074,202,946

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

published version 5.0.0, 4 years ago2146 dependents licensed under $MIT
349,107,997

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

published version 5.0.2, 22 days ago3160 dependents licensed under $MIT
357,295,409

ES2019 spec-compliant String.prototype.trimEnd shim.

published version 1.0.9, 6 months ago1299 dependents licensed under $MIT
176,508,229

Strip the final newline character from a string or Uint8Array

published version 4.0.0, a year ago1373 dependents licensed under $MIT
253,771,214

ES2019 spec-compliant String.prototype.trimStart shim.

published version 1.0.8, a year ago1291 dependents licensed under $MIT
171,433,495

ES5 spec-compliant shim for String.prototype.trim

published version 1.2.10, 6 months ago818 dependents licensed under $MIT
144,841,491

Strip redundant indentation and indent the string

published version 4.0.0, 4 years ago906 dependents licensed under $MIT
116,002,715

Normalize a URL

published version 8.0.1, a year ago1652 dependents licensed under $MIT
135,524,623

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

published version 5.0.0, 2 years ago672 dependents licensed under $MIT
70,864,431

Remove spaces and tabs around line-breaks

published version 3.0.1, 3 years ago22 dependents licensed under $MIT
25,321,818

Strip a substring from the start/end of a string

published version 2.0.0, 4 years ago57 dependents licensed under $MIT
17,794,569

ES2017 spec-compliant String.prototype.padEnd shim.

published version 3.1.6, a year ago152 dependents licensed under $MIT
21,587,542

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

published version 2.0.0, 4 years ago52 dependents licensed under $MIT
17,845,197

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 ago22 dependents licensed under $(MIT OR Apache-2.0)
12,562,838

Remove final line feeds from a string

published version 2.1.0, 3 years ago65 dependents licensed under $MIT
10,708,241

ES2017 spec-compliant String.prototype.padStart shim.

published version 3.1.7, 3 months ago199 dependents licensed under $MIT
7,276,780

ES2019 spec-compliant String.prototype.trimLeft shim.

published version 2.1.3, 5 years ago65 dependents licensed under $MIT
6,026,817

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

published version 5.0.0, 4 years ago96 dependents licensed under $MIT
6,163,825

ES2019 spec-compliant String.prototype.trimLeft shim.

published version 2.1.3, 5 years ago64 dependents licensed under $MIT
6,021,366