UNPKG

@naturalcycles/nodejs-lib

Version:
40 lines 1.1 kB
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const yargs = require("yargs"); const script_1 = require("../script"); const ndjsonMap_1 = require("../stream/ndjson/ndjsonMap"); script_1.runScript(async () => { const { in: inputFilePath, out: outputFilePath, mapper: mapperFilePath, logEvery, limit, } = yargs.options({ in: { type: 'string', demandOption: true, desc: 'Input ndjson file path', }, out: { type: 'string', desc: 'Output ndjson file path', demandOption: true, }, mapper: { type: 'string', desc: 'Mapper file path', demandOption: true, }, logEvery: { type: 'number', default: 1000, }, limit: { type: 'number', }, }).argv; await ndjsonMap_1.ndjsonMap({ inputFilePath, outputFilePath, mapperFilePath, logEvery, limit, }); }); //# sourceMappingURL=ndjson-map.js.map