pull-generator
v1.0.0
Published
Create a Pull Stream from a Generator.
Downloads
6
Maintainers
Readme
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