UNPKG

@naturalcycles/nodejs-lib

Version:
17 lines 554 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const through2Concurrent = require("through2-concurrent"); /** * Wrapper around `through2-concurrent`. * objectMode defaults to true */ function transformConcurrent(opt = {}, transform, flush) { if (opt.objectMode === false) { return through2Concurrent(opt, transform, flush); } else { return through2Concurrent.obj(opt, transform, flush); } } exports.transformConcurrent = transformConcurrent; //# sourceMappingURL=transformConcurrent.js.map