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

Latest commit

 

History

History
32 lines (24 loc) · 543 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 543 Bytes

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