Convert bytes to a human readable string: 1337 → 1.34 kB
MIT License
No README available, please check again later.
Strip leading whitespace from each line in a string
Pad stdout and stderr
Strip shebang (eg. #!/bin/sh) from a string
Convert RGB color to HEX
Detect the dominant newline character
Slugify a string
Convert a path to a file url: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`
Strip UTF-8 byte order mark (BOM)
Convert seconds to a human readable string: 165392 → 1d 21h 56m 32s
Prepend `<br>` to newlines in a string
Parse text columns, like the output of unix commands
Get your public IP address
Minify HTML
Convert milliseconds to a human readable string: 1337000000 → 15d 11h 23m 20s