870be1e2d5d3a5b0e524490a345d6129bfdadeb2
WeakMap for private properties (#42)
* options.buffer isn't a valid option * truly private internal properties * 100% test coverage
…
…
fetch-blob
A Blob implementation in Node.js, originally from node-fetch.
Installation
$ npm install fetch-blob
Usage
const Blob = require('fetch-blob');
const fetch = require('node-fetch');
fetch('https://httpbin.org/post', {
method: 'POST',
body: new Blob(['hello'], { type: 'text/plain' })
})
.then(res => res.json());
.then(json => console.log(json));
See the MDN documentation and tests for more details.
Languages
JavaScript
100%