UNPKG

@pujansrt/data-genie

Version:

High performant ETL engine written in TypeScript

15 lines (14 loc) 481 B
import { DataRecord } from '../core/interfaces'; export declare class FixedWidthReader { private readonly filePath; private fieldWidths; private fieldNames; private hasFieldNamesInFirstRow; private initialized; constructor(filePath: string); setFieldWidths(...widths: number[]): this; setFieldNames(...names: string[]): this; setFieldNamesInFirstRow(value: boolean): this; read(): AsyncIterableIterator<DataRecord>; private splitLine; }