0.0.11 • Published 3 years ago
xlsx-file-parser-light v0.0.11
xlsx-file-parser-light
based on https://github.com/trevordixon/excel.js work for local files.
Demo
Installation
$ npm i xlsx-file-parser-lightUsage
    import XLSXParser from 'lightwaight-xlsx-file-parser'
    ...
    const parser = new XLSXParser(buffer);
    const sheets = await parser.parse();
    const sheetsJson = sheets.map(sheet => sheet.rowsAsJson);sheet
class Sheet {
    cells: Cell[];
    columnNames: string[];
    name: string;
    constructor(init?: Partial<Sheet>);
    get numberOfRows(): number;
    get numberOfColumns(): number;
    get startRow(): number;
    get startColumn(): number;
    get rowsAsJson(): any[][];
    getRow(index: number): Row;
    getColumn(index: number): Column;
    getCell(row: number, column: number): Cell;
}