Jimmy Wärting 870be1e2d5 Use a WeakMap for private properties (#42)
* options.buffer isn't a valid option

* truly private internal properties

* 100% test coverage
2020-06-06 00:09:32 -04:00
…
2020-05-19 21:59:02 +12:00
2020-05-21 11:07:56 +02:00
…
2020-05-21 11:08:09 +02:00
2020-04-14 21:52:25 +12:00

fetch-blob

npm version build status coverage status install size

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.

S
Description
A Blob implementation in Node.js, originally from node-fetch.
Readme MIT
420 KiB
Languages
JavaScript 100%