Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
/ hexhelpers Public archive

CLI tools to convert values to/from hex

Notifications You must be signed in to change notification settings

oceanbit/hexhelpers

Repository files navigation

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