Awesome
pretty-bytes-cli
Convert bytes to a human readable string:
1337
→1.34 kB
Useful for displaying file sizes for humans.
Install
npm install --global pretty-bytes-cli
Usage
$ pretty-bytes --help
Usage
$ pretty-bytes <number>
$ echo <number> | pretty-bytes
Example
$ pretty-bytes 1337
1.34 kB
Related
- pretty-bytes - API for this module