JSPM

pull-async-filter

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 41
  • Score
    100M100P100Q76501F
  • License MIT

a through for dominictarr's pull-stream to remove items with an async filter function

Package Exports

  • pull-async-filter

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 (pull-async-filter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

SYNOPSIS

A through stream that removes items with an async filter.

USAGE

var remove = require('pull-async-filter');
var pull = require('pull-stream');

function should(v, cb) {
  setTimeout(function () {
      cb(null, v === 10);
  });
}

pull(
  pull.values([10, 10, 30, 10]),
  remove(should),
  sum(function (err, value) {
    console.log(value); // 30
  })
);