1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.ndJsonFileRead = void 0;
|
4 | const __1 = require("../..");
|
5 | const pipelineFromNDJsonFile_1 = require("./pipelineFromNDJsonFile");
|
6 | /**
|
7 | * Read whole NDJSON file into memory, resolve promise with resulting array of items.
|
8 | */
|
9 | async function ndJsonFileRead(opt) {
|
10 | const res = [];
|
11 | await (0, pipelineFromNDJsonFile_1.pipelineFromNDJsonFile)([(0, __1.writablePushToArray)(res)], opt);
|
12 | return res;
|
13 | }
|
14 | exports.ndJsonFileRead = ndJsonFileRead;
|