@naturalcycles/nodejs-lib
Version:
Standard library for Node.js
13 lines (12 loc) • 512 B
TypeScript
import { TransformLogProgressOptions, TransformMapOptions } from '../..';
export interface NDJSONMapOptions<OUT = any> extends TransformMapOptions<OUT>, TransformLogProgressOptions {
inputFilePath: string;
outputFilePath: string;
mapperFilePath: string;
limit?: number;
}
/**
* Unzips input file automatically, if it ends with `.gz`.
* Zips output file automatically, if it ends with `.gz`.
*/
export declare function ndjsonMap<IN = any, OUT = any>(opt: NDJSONMapOptions<OUT>): Promise<void>;