promise-stream-data
v1.0.1
Published
Create promises for the ReadableStream data.
Downloads
9
Maintainers
Readme
promise-stream-data
Create promises for the ReadableStream data.
Install
npm install promise-stream-data
Usage
const http = require('http');
const fetchData = require('promise-stream-data');
http.get('http://google.com', res => {
fetchData(res)
.then(data => console.log(data))
.catch(err => console.error(err));
});