fetch-blob
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

fetch-blob

npm version build status coverage status install size

A Blob implementation on node.js, originally from node-fetch

Usage

$ npm install fetch-blob
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()) // expecting a json response
    .then(json => console.log(json));

See MDN doc and Tests for more details.

Readme

Keywords

Package Sidebar

Install

npm i fetch-blob@1.0.5

Version

1.0.5

License

MIT

Unpacked Size

8.67 kB

Total Files

7

Last publish

Collaborators

  • endless
  • bitinn
  • akepinski