xlsx-file-parser-light
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

xlsx-file-parser-light

based on https://github.com/trevordixon/excel.js work for local files.

Installation

$ npm i xlsx-file-parser-light

Usage

    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;
}

Readme

Keywords

Package Sidebar

Install

npm i xlsx-file-parser-light

Weekly Downloads

53

Version

0.0.11

License

MIT

Unpacked Size

18.7 kB

Total Files

33

Last publish

Collaborators

  • tuvia.r
  • tuvia-rumpler