pull-generator

1.0.0 • Public • Published

pull-generator

Create a Pull Stream from a Generator.

npm i pull-generator
const pull = require('pull-stream')
const pull_gen = require('pull-generator')

function* generator() {
  yield 1
  yield 2
}

pull(pull_gen(generator()), pull.log)
// prints:
// 1
// 2

License

Apache-2.0

Package Sidebar

Install

npm i pull-generator

Weekly Downloads

3

Version

1.0.0

License

Apache-2.0

Last publish

Collaborators

  • fishrock123