# API ## Classes
StreamFilter

Filter piped in streams according to the given filterCallback.

## Functions
filterStream(filterCallback, options) ⇒

Utility function if you prefer a functional way of using this lib

## StreamFilter Filter piped in streams according to the given `filterCallback`. **Kind**: global class ### new StreamFilter(filterCallback, options) 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`. **Returns**: [StreamFilter](#StreamFilter) - The filtering stream | Param | Type | Description | | --- | --- | --- | | filterCallback | function | Callback applying the filters | | options | Object | Filtering options | | options.passthrough | boolean | Set to `true`, this option changes the restore stream nature from a readable stream to a passthrough one, allowing you to reuse the filtered chunks in an existing pipeline. | | options.restore | boolean | Set to `true`, this option create a readable stream allowing you to use the filtered chunks elsewhere. The restore stream is exposed in the `FilterStream` instance as a `restore` named property. | ## filterStream(filterCallback, options) ⇒ Utility function if you prefer a functional way of using this lib **Kind**: global function **Returns**: Stream | Param | | --- | | filterCallback | | options |