Skip to content

montyanderson/blob-to-arraybuffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 => {

});

About

Promise API to turn a Blob into an ArrayBuffer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published