pullout
v5.0.1
Published
pull out data from stream
Downloads
4,403
Readme
Pullout
Pull out data from stream.
Install
npm i pullout
pullout(stream[, type = 'string'])
Type could be string
or buffer
.
const pullout = require('pullout');
const fs = require('fs');
const readStream = fs.createReadStream(__filename);
const data = await pullout(readStream);
console.log(data);
Related
- pipe-io - pipe streams and handle events
License
MIT