A Blob implementation in 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 World'], { type: 'text/plain' }) }) .then(res => res.json()); .then(json => console.log(json));
See the MDN documentation and tests for more details.