A Blob implementation on node.js, originally from node-fetch
$ 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));