Strip UTF-8 byte order mark (BOM) from a string
MIT License
Strip the final newline character from a string/buffer
Strip UTF-8 byte order mark (BOM) from a buffer
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Strip shebang (eg. #!/bin/sh) from a string
Strip comments from JSON. Lets you use comments in your JSON files!
Strip a substring from the start/end of a string
Indent each line in a string
Read and parse a JSON file
Strip UTF-8 byte order mark (BOM)
Strip UTF-8 byte order mark (BOM) from a stream
Strip redundant indentation and indent the string
Strip leading whitespace from each line in a string
Add a UTF-8 BOM to files