1.0.1 • Published 3 years ago

hex-to-bin v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Hex to bin

A simple function that converts hexadecimal string to binary with typescript

Installation

Using npm:

npm install hex-to-bin -S

Using yarn:

yarn add hex-to-bin

Usage

import hex2Bin from 'hex-to-bin';
const hexString = '0123456789abcdef';

// 0000000100100011010001010110011110001001101010111100110111101111 
console.log(hex2Bin(hexString));