$ cnpm install array-buffer-from-string
Create an ArrayBuffer with the raw bytes from a String.
npm install --save array-buffer-from-string
const arrayBufferFromString = require('array-buffer-from-string')
console.log(arrayBufferFromString('Hello world!'))
//=> ArrayBuffer { byteLength: 24 }
Create an ArrayBuffer with the raw bytes from a String.
hex-to-array-buffer - Turn a string of hexadecimal characters into an ArrayBuffer
Copyright 2013 - present © cnpmjs.org | Home |