/hexhelpers

CLI tools to convert values to/from hex

Primary LanguageJavaScript

Hex Helpers

A set of CLI utilities for converting hex numbers to other bases and vise-versa

Install

npm i -g @oceanbit/decimaltohex
npm i -g @oceanbit/binarytohex
npm i -g @oceanbit/hextodecimal
npm i -g @oceanbit/hextobinary

Use

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