pull-async-values

1.0.3 • Public • Published

pull-async-values

A thin wrapper around pull.values, where you want to source a pull-stream with values from an async function.

Example usage

var pull = require('pull-stream')
var fs = require('fs')
var asyncValues = require('pull-async-values')

// collect all files in the current directory except for the README
pull(
  asyncValues(fs.readdir.bind(fs, __dirname)),
  pull.filter(function (filename) { return filename !== 'README.md' }),
  pull.collect(function (err, array) {
    console.log(array)
  })
)

You can also take a look at the examples

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    2
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i pull-async-values

Weekly Downloads

3

Version

1.0.3

License

MIT

Last publish

Collaborators

  • joshwnj