Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

from2-array

0.0.4 • Public • Published

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

install

npm i from2-array

Downloadsweekly downloads

15,683

version

0.0.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability