Socket
Socket
Sign inDemoInstall

xlsx-file-parser-light

Package Overview
Dependencies
18
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

xlsx-file-parser-light

light weight parser for xlsx file


Version published
Maintainers
2
Weekly downloads
105
increased by36.36%

Weekly downloads

Readme

Source

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

Keywords

FAQs

Last updated on 09 Sep 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc