Strip leading whitespace from each line in a string
Strip leading whitespace from each line in a string
Indent each line in a string
Strip redundant indentation and indent the string
Strip ANSI escape codes from a string
Strip UTF-8 byte order mark (BOM) from a string
Check if a string has ANSI escape codes
Strip comments from JSON. Lets you use comments in your JSON files!
Detect the dominant newline character of a string
Strip flow type annotations from your output code.
Strip comments and string literals from JavaScript code
Strip comments from JSON. Lets you use comments in your JSON files!
Detect the indentation of code
Strip the final newline character from a string or Uint8Array
Left pad a string to align with the longest string in an array
Strip a byte order mark (BOM) from a string.
Repeat a string - fast
Remove leading directory components from a path, like tar's --strip-components option
JSON.parse with context information on error
Get the shortest leading whitespace from lines in a string
Strip a substring from the start/end of a string
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.
Pad each line in a stream
Strip UTF-8 byte order mark (BOM) from a stream