through3 v1.1.7
Table of Contents
Through
Stream extends library tracking latest stable node with no external dependencies.
Requires node (>=0.11).
Install
npm i through3 --saveAPI
through3
Utilities for creating stream subclass functions.
extend
extend(type, ctor[, opts])Creates a stream subclass.
Returns a stream subclass.
typeFunction The super class.ctorFunction Constructor for the subclass.optsObject Default constructor options.
transform
transform(fn[, flush][, opts])Creates a transform stream subclass.
Returns transform stream subclass.
fnFunction The transform function.flushFunction A flush function.optsObject Default constructor options.
cork
cork()Creates a pass through stream subclass that calls cork to buffer all input and write on end.
Useful when you need all the data before operations can begin.
Returns stream class that buffers the input.
passthrough
passthrough(opts)Get a pass through stream class.
Returns a stream that passes through data.
optsObject Stream construct options.
Developer
Test
Tests are not included in the package, clone the repository:
npm testCover
To generate code coverage run:
npm run coverDocumentation
To generate all documentation:
npm run docsReadme
To build the readme file from the partial definitions (requires mdp):
npm run readmeLicense
Everything is MIT. Read the license if you feel inclined.
Generated by mdp(1).