Strip leading whitespace from each line in a string
MIT License
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Strip the final newline character from a string/buffer
Regular expression for matching a shebang line
Strip console, alert, and debugger statements from JavaScript code
Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`
Detect the dominant newline character of a string
Strip a substring from the start/end of a string
Strip redundant indentation and indent the string
Remove leading, trailing and repeated whitespace from a string
Check if your code is running as an npm or yarn script
Detect the indentation of code
Indent each line in a string
Strip UTF-8 byte order mark (BOM) from a string
Repeat a string - fast