Skip to content

node-fetch/fetch-blob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 12