Remove leading, trailing and repeated whitespace from a string
MIT License
Split lines into an array of lines
Strip leading whitespace from each line in a string
Strip a substring from the start/end of a string
Strip comments from JSON. Lets you use comments in your JSON files!
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Indent each line in a string
Normalize the newline characters in a string to `\n`
Trim newlines from the start and/or end of a string
Convert a camelized/dasherized/underscored string into a humanized one: fooBar-Baz_Faz → Foo bar ...
Strip the final newline character from a string/buffer
Strip UTF-8 byte order mark (BOM)
Detect the dominant newline character of a string
Strip redundant indentation and indent the string