126b4ec6970568a5703312ba9b7061170854d747
* remove travis * add codecov partial line coverage * switch coverage to c8 * add GitHub Actions * update badge * import TextDecoder from util * lint
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 World'], { type: 'text/plain' })
})
.then(res => res.json());
.then(json => console.log(json));
See the MDN documentation and tests for more details.
Languages
JavaScript
100%