@naturalcycles/nodejs-lib
Version:
Standard library for Node.js
12 lines • 537 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const readableFromArray_1 = require("../readable/readableFromArray");
const pipelineToNDJsonFile_1 = require("./pipelineToNDJsonFile");
/**
* Write array of objects (in memory) into NDJSON file. Resolve when done.
*/
async function ndJsonFileWrite(items, opt) {
await pipelineToNDJsonFile_1.pipelineToNDJsonFile([readableFromArray_1.readableFromArray(items)], opt);
}
exports.ndJsonFileWrite = ndJsonFileWrite;
//# sourceMappingURL=ndJsonFileWrite.js.map