Skip to content

binocarlos/from2-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Create a from2 stream based on an array of source values

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published