streamfilter
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "streamfilter", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Filtering streams.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -1,13 +0,13 @@ | ||
# filterstream | ||
# streamfilter | ||
`filterstream` is a function based filter for streams inspired per gulp-filter | ||
`streamfilter` is a function based filter for streams inspired per gulp-filter | ||
but no limited to Gulp nor to objectMode streams. | ||
[![NPM version](https://badge.fury.io/js/filterstream.png)](https://npmjs.org/package/filterstream) [![Build status](https://secure.travis-ci.org/nfroidure/filterstream.png)](https://travis-ci.org/nfroidure/filterstream) [![Dependency Status](https://david-dm.org/nfroidure/filterstream.png)](https://david-dm.org/nfroidure/filterstream) [![devDependency Status](https://david-dm.org/nfroidure/filterstream/dev-status.png)](https://david-dm.org/nfroidure/filterstream#info=devDependencies) [![Coverage Status](https://coveralls.io/repos/nfroidure/filterstream/badge.png?branch=master)](https://coveralls.io/r/nfroidure/filterstream?branch=master) [![Code Climate](https://codeclimate.com/github/nfroidure/filterstream.png)](https://codeclimate.com/github/nfroidure/filterstream) | ||
[![NPM version](https://badge.fury.io/js/streamfilter.png)](https://npmjs.org/package/streamfilter) [![Build status](https://secure.travis-ci.org/nfroidure/streamfilter.png)](https://travis-ci.org/nfroidure/streamfilter) [![Dependency Status](https://david-dm.org/nfroidure/streamfilter.png)](https://david-dm.org/nfroidure/streamfilter) [![devDependency Status](https://david-dm.org/nfroidure/streamfilter/dev-status.png)](https://david-dm.org/nfroidure/streamfilter#info=devDependencies) [![Coverage Status](https://coveralls.io/repos/nfroidure/streamfilter/badge.png?branch=master)](https://coveralls.io/r/nfroidure/streamfilter?branch=master) [![Code Climate](https://codeclimate.com/github/nfroidure/streamfilter.png)](https://codeclimate.com/github/nfroidure/streamfilter) | ||
## Installation | ||
First install `filterstream` in you project: | ||
First install `streamfilter` in you project: | ||
```sh | ||
npm install --save filterstream | ||
npm install --save streamfilter | ||
``` | ||
@@ -22,3 +22,3 @@ | ||
```js | ||
var FilterStream = require('filterstream'); | ||
var FilterStream = require('streamfilter'); | ||
@@ -42,3 +42,3 @@ var filter = new FilterStream(function(chunk, encoding, cb) { | ||
```js | ||
var FilterStream = require('filterstream'); | ||
var FilterStream = require('streamfilter'); | ||
@@ -66,3 +66,3 @@ var filter = new FilterStream(function(chunk, encoding, cb) { | ||
```js | ||
var FilterStream = require('filterstream'); | ||
var FilterStream = require('streamfilter'); | ||
@@ -98,7 +98,11 @@ // Filter values | ||
Filter piped in streams according to the given `filterCallback`. Options are | ||
passed in as is in the various stream instances spawned by this module. So, | ||
to use the objectMode, simply pass in the `options.objectMode` value set to | ||
`true`. | ||
Filter piped in streams according to the given `filterCallback` that takes the | ||
following arguments: `chunk` the actual chunk, `encoding` the chunk encoding, | ||
`filterResultCallback` the function to call as the result of the filtering | ||
process with `true` in argument to filter her or `false` otherwise. | ||
Options are passed in as is in the various stream instances spawned by this | ||
module. So, to use the objectMode, simply pass in the `options.objectMode` | ||
value set to `true`. | ||
#### options.restore | ||
@@ -122,4 +126,4 @@ Set to `true`, this option create a readable stream allowing you to use the | ||
```sh | ||
git clone git@github.com:nfroidure/filterstream.git | ||
cd filterstream | ||
git clone git@github.com:nfroidure/streamfilter.git | ||
cd streamfilter | ||
npm install | ||
@@ -134,4 +138,4 @@ ``` | ||
## Stats | ||
[![NPM](https://nodei.co/npm/filterstream.png?downloads=true&stars=true)](https://nodei.co/npm/filterstream/) | ||
[![NPM](https://nodei.co/npm-dl/filterstream.png)](https://nodei.co/npm/filterstream/) | ||
[![NPM](https://nodei.co/npm/streamfilter.png?downloads=true&stars=true)](https://nodei.co/npm/streamfilter/) | ||
[![NPM](https://nodei.co/npm-dl/streamfilter.png)](https://nodei.co/npm/streamfilter/) | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14571
136