alsak-toolbox
v0.1.2
Published
CLI toolbox (initially: hex converter)
Readme
alsak-toolbox
CLI toolbox (initially: hex converter).
Install
Global (from npm)
npm i -g alsak-toolboxUsage
hex -d2h <number> [-p|--prefix] [-u|--upper]
hex -h2d <hex>
hex <value> (auto detect)
hex -h | --help
hex -v | --versionShort flags
-d=--d2h(decimal -> hex)-x=--h2d(hex -> decimal)-p=--prefix-u=--upper-h=--help-v=--version
Examples
hex -d 255
hex -d 255 -p
hex -d 24007618 -p -u
hex -x 0xff
hex 0x10Notes
- Uses
BigIntto support large integers. - Negative numbers are supported for decimal -> hex (output is prefixed with
-).
License
MIT
