0.0.2 • Published 10 years ago

genread v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
10 years ago

Turn any generator into a readable stream.

Build Status

Installation

$ npm install genread

You must use node 0.11.9 or higher for generator support and run with the --harmony flag.

Example

var genread = require('genread');

function* twolines(){
  yield 'line 1\n'
  yield 'line 2\n'
}

function* fivelines(){
  yield '1';
  yield '23';
  yield *twolines();
  yield '456';
}

genread(fivelines()).pipe(process.stdout)
0.0.2

10 years ago

0.0.1

10 years ago