This is CLI version of superbytes library
Superbytes-cli is a command line version of superbytes package. Just convert bytes in command line to a human readable values!
Latest version:
npm i -g superbytes-cli@latest
$ superbytes <bytes-number>
$ sb <bytes-number>
Positionals:
bytes input bytes number [number] [default: 0]
Options:
--help Show help [boolean]
--version Show version number [boolean]
-p, --precision Set number precision (max 10) [number] [default: 2]
-m, --metric Set metric standard (iec | si) [string] [default: "iec"]
$ sb
// returns 0 B
$ sb 812341
// returns 793.30 KiB
$ sb 91231812341 -m si -p 0
// returns 91 GB
Main superbytes package which is used here:
https://github.com/superbytess/superbytes https://www.npmjs.com/package/superbytes
MIT © Damian Polak