superbytes-cli
v1.0.0
Published
This is CLI version of superbytes library. Just convert bytes to a human readable string format from command line.
Downloads
5
Maintainers
Readme
Description
Superbytes-cli is a command line version of superbytes package. Just convert bytes in command line to a human readable values!
Installation
Latest version:
npm i -g superbytes-cli@latest
Usage
$ 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"]
Example
$ sb
// returns 0 B
$ sb 812341
// returns 793.30 KiB
$ sb 91231812341 -m si -p 0
// returns 91 GB
See
Main superbytes package which is used here:
https://github.com/superbytess/superbytes https://www.npmjs.com/package/superbytes
License
MIT © Damian Polak