from2-array
Create a from2 stream based on an array of source values
Last updated 9 years ago by binocarlos .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install from2-array 
SYNC missed versions from official npm registry.

from2-array

NPM

Travis

Create a from2 stream based on an array of source values

Useful when you want to create a Readable stream with some values you already have in an array

example

var from = require('from2-array')
var through = require('through2')

from.obj([{
  name:'a'
},{
  name:'b'
},{
  name:'c'
}]).pipe(through.obj(function(chunk, enc, cb){
	console.log('found: ' + chunk.name)
	cb()
}))

license

MIT

Current Tags

  • 0.0.4                                ...           latest (9 years ago)

3 Versions

  • 0.0.4                                ...           9 years ago
  • 0.0.3                                ...           10 years ago
  • 0.0.2                                ...           11 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE