UNPKG

stromjs

Version:

Dependency-free streams utils for Node.js

7 lines (6 loc) 358 B
/// <reference types="node" /> import { DuplexOptions, Duplex, Writable } from "stream"; export interface DemuxOptions extends DuplexOptions { remultiplex?: boolean; } export declare function demux(pipelineConstructor: (destKey?: string, chunk?: any) => Writable | Writable[], demuxBy: string | ((chunk: any) => string), options?: DemuxOptions): Duplex;