stream-to-thunk

0.0.0 • Public • Published

stream-to-thunk

co(function *() {
  var readStream = fs.createReadStream(path.join(__dirname, 'file.txt'), {
    encoding: 'utf8'
  });
  var content = yield streamToThunk(readStream);
})();

Install

$ npm install stream-to-thunk

License

The MIT License (MIT)

http://poying.mit-license.org/

/stream-to-thunk/

    Package Sidebar

    Install

    npm i stream-to-thunk

    Weekly Downloads

    1

    Version

    0.0.0

    License

    MIT

    Last publish

    Collaborators

    • poying