Package Exports
- hex-to-array-buffer
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hex-to-array-buffer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
hex-to-array-buffer
Turn a string of hexadecimal characters into an ArrayBuffer
.
Installation
npm install --save hex-to-array-buffer
Usage
const hexToArrayBuffer = require('hex-to-array-buffer')
const buffer = hexToArrayBuffer('ceae96a325e1dc5dd4f405d905049ceb')
console.log(buffer)
//=> ArrayBuffer { byteLength: 16 }
API
hexToArrayBuffer(hex: string) => ArrayBuffer
Returns a new ArrayBuffer with the binary content specified as a string of hexadecimal characters.