JSPM

uint8-to-hex

2.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2771
  • Score
    100M100P100Q124171F
  • License MIT

The fastest function to convert a Uint8Array to hexadecimal.

Package Exports

  • uint8-to-hex

Readme

Uint8 To Hex

The fastest function to convert a Uint8Array to hexadecimal.

Install

npm install uint8-to-hex

Usage

import toHex from 'uint8-to-hex';

// Converting a Uint8Array to a hexadecimal string

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

License

MIT © Fabio Spampinato