# API ## Classes
Filter piped in streams according to the given filterCallback.
Utility function if you prefer a functional way of using this lib
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 |