🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

xlsx-file-parser-light

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xlsx-file-parser-light

light weight parser for xlsx file

0.0.11
latest
Version published
Weekly downloads
111
-30.63%
Maintainers
2
Weekly downloads
 
Created

xlsx-file-parser-light

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

Demo

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

FAQs

Package last updated on 09 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts