JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 688
  • Score
    100M100P100Q103789F
  • License MIT

pull out data from stream

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 License NPM version Dependency Status Build Status Coverage Status

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');
  • pipe-io - pipe streams and handle events

License

MIT