A set of CLI utilities for converting hex numbers to other bases and vise-versa
npm i -g @oceanbit/decimaltohex
npm i -g @oceanbit/binarytohex
npm i -g @oceanbit/hextodecimal
npm i -g @oceanbit/hextobinary
You can either specify the numerical input as a command line argument or pipe the number (preferred).
hextodecimal f2
hextobinary f2
decimaltohex 12
binarytohex 101
or
echo "f2" | hextodecimal
echo "f2" | hextobinary
echo "12" | decimaltohex
echo "101" | binarytohex