blob-to-arraybuffer
v0.0.1
Published
Promise API to turn a Blob into an ArrayBuffer
Downloads
130
Readme
blob-to-arraybuffer
Promise API to turn a Blob
into an ArrayBuffer
Install
$ npm install --save blob-to-arraybuffer
Usage
const blobToArrayBuffer = require("blob-to-arraybuffer");
blobToArrayBuffer(blob).then(buffer => {
// hurrah!
});
with fetch
fetch("file.dat")
.then(res => res.blob)
.then(blobToArrayBuffer)
.then(buffer => {
});