stream-filter

Filter data passed through

npm install stream-filter
9 downloads in the last day
39 downloads in the last week
145 downloads in the last month

stream-filter

Filter data using a through stream

Example

var filter = require("stream-filter");

process.stdin.pipe(filter(function(data) {
    return data.length > 2;
})).pipe(process.stdout);

Using an Async Test

var filter = require("stream-filter");

process.stdin.pipe(filter.async(function(data, callback) {
    doAsyncThing(data, function(err, size) {
        callback(err, size > 2);
    });
})).pipe(process.stdout);

Installation

npm install stream-filter
npm loves you