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

Readme

Keywords

none

Package Sidebar

Install

npm i pull-async-values

Weekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • joshwnj