Default to an objectMode: true instance but allow creating other instances with other defaults

This commit is contained in:
Lewis Diamond
2020-08-03 18:54:40 -04:00
parent 4aac05c9c0
commit 87c44de799
32 changed files with 241 additions and 76 deletions

View File

@@ -263,5 +263,10 @@ export function strom(defaultOptions: TransformOptions = { objectMode: true }) {
* @param options Writable stream options
*/
demux: withDefaultOptions(2, demux),
/**
* Create a new strom instance overriding the defaults
*/
instance: strom,
};
}