hex-to-uint8
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Hex To Uint8

The fastest function to convert a hexadecimal string to a Uint8Array.

Install

npm install --save hex-to-uint8

Usage

import toUint8 from 'hex-to-uint8';

const hex = '48656c6c6f2c20776f726c6421';
const uint8 = toUint8 ( hex ); // => Uint8Array(13) [ 72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33 ]

License

MIT © Fabio Spampinato

/hex-to-uint8/

    Package Sidebar

    Install

    npm i hex-to-uint8

    Weekly Downloads

    1

    Version

    1.0.0

    License

    none

    Unpacked Size

    3.55 kB

    Total Files

    9

    Last publish

    Collaborators

    • fabiospampinato