UNPKG

ix

Version:

The Interactive Extensions for JavaScript

11 lines (9 loc) 454 B
import { AsyncIterableX } from '../../asynciterable/asynciterablex.mjs'; import { AsyncIterableReadable } from '../../asynciterable/tonodestream.mjs'; export function toNodeStreamProto(options) { return !options || options.objectMode === true ? new AsyncIterableReadable(this, options) : new AsyncIterableReadable(this, options); } AsyncIterableX.prototype.toNodeStream = toNodeStreamProto; //# sourceMappingURL=tonodestream.mjs.map