@naturalcycles/nodejs-lib
Version:
Standard library for Node.js
17 lines • 554 B
JavaScript
;
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