README
dex
Translate data from base
ainto basenand back
Install
From npm
npm install --save dex
dex.hex(input)
Returns input converted into base16 representation. Assumes input is a base10 string, or a Number.
dex.dec(input)
Returns input converted into base10 representation. Assumes input is a base16 string.
dex(input, from, to)
Returns input converted into baseto representation. Assumes input is a basefrom string.
Notes
dexaccepts only non-empty strings and numericinputs, every otherinputvalue will result innullbeing returnedinputgets lowercased bydex, so you don't need to- Result is always a lowercase string representation of the number in the requested notation
CLI
dex <input> [from] [to]
Prints to standard output the results of doing dex(input, from=16, to=10).
License
MIT