blob-to-arraybuffer

0.0.1 • Public • Published

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 => {
 
});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.130latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.130

Package Sidebar

Install

npm i blob-to-arraybuffer

Weekly Downloads

25

Version

0.0.1

License

MIT

Last publish

Collaborators

  • montyanderson