strip-ansi
Strip ANSI escape codes from a string
Strip ANSI escape codes from a string
Normalize a URL
Strip UTF-8 byte order mark (BOM) from a string
Strip comments from JSON. Lets you use comments in your JSON files!
ES2019 spec-compliant String.prototype.trimStart shim.
ES2019 spec-compliant String.prototype.trimEnd shim.
Strip redundant indentation and indent the string
Strip the final newline character from a string/buffer
Trim newlines from the start and/or end of a string
Strip the final newline character from a string or Uint8Array
Strip a substring from the start/end of a string
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
ES2019 spec-compliant String.prototype.trimLeft shim.
ES2019 spec-compliant String.prototype.trimLeft shim.
Similar to `String#trim()` but removes only whitespace on the right
ES2017 spec-compliant String.prototype.padEnd shim.
Trim string whitespace
Remove final line feeds from a string
ES5 spec-compliant shim for String.prototype.trim
ES2017 spec-compliant String.prototype.padStart shim.