Package Exports
- pullout
- pullout/legacy
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pullout) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Pullout

Pull out data from stream.
Install
npm i pullout --save
pullout(stream[, type = 'buffer'], fn)
Type could be string
or buffer
.
const pullout = require('pullout'),
const fs = require('fs'),
const readStream = fs.createReadStream(__filename);
pullout(readStream, 'string', (error, data) => {
console.log(error || data);
});
Environments
In old node.js
environments that not fully supports es2015
, pullout
could be used with:
var pullout = require('pullout/legacy');
Related
- pipe-io - pipe streams and handle events
License
MIT