Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blob is not a constructor #17

Open
ketavchotaliya opened this issue Dec 28, 2018 · 1 comment
Open

Blob is not a constructor #17

ketavchotaliya opened this issue Dec 28, 2018 · 1 comment

Comments

@ketavchotaliya
Copy link

I'm using Blob in node.js (v8.10.0) for creating a dummy file for the unit test. Below is my code

const Blob = require('blob');
let dummyFileData = new Uint8Array( [ 137, 80, 78, 71, 130 ] );
let dummyFileBlob = new Blob([ dummyFileData ], { type: 'image/png' });

image

@sidequestlegend
Copy link

try this instead - https://npmjs.com/package/node-blob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@sidequestlegend @ketavchotaliya and others