Skip to content

A Blob implementation in Node.js, originally from node-fetch.

License

Notifications You must be signed in to change notification settings

node-fetch/fetch-blob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 World'], { type: 'text/plain' })
})
    .then(res => res.json());
    .then(json => console.log(json));

See the MDN documentation and tests for more details.