Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Filter data passed through
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
index.js
package.json
test.js

README.md

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
Something went wrong with that request. Please try again.