JSPM

from2-array

0.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 82537
  • Score
    100M100P100Q156227F
  • License MIT

Create a from2 stream based on an array of source values

Package Exports

  • from2-array

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (from2-array) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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