📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

genread

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

genread

Turn any generator into a Readable stream

0.0.2
latest
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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)

Keywords

stream

FAQs

Package last updated on 13 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts