Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@libs-jd/xlsx-parse-table

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libs-jd/xlsx-parse-table

Modern Excel/XLSX parser and streaming capabilities

  • 1.0.7
  • npm
  • Socket score

Version published
Weekly downloads
47
decreased by-95.16%
Maintainers
0
Weekly downloads
 
Created
Source

@libs-jd/xlsx-parse-table npm version

A library to parse tables from Excel worksheets.

Install

Install with npm:

$ npm install --save @libs-jb/xlsx-parse-table xlsx

Usage

Works with Excel files.

Example - Node.js

const xlsx = require("xlsx");
const workbook = xlsx.readFile("path/to/excel-file.xlsx");
const worksheet = workbook.Sheets[workbook.SheetNames[0]];
const { parse } = require("@libs-jb/xlsx-parse-table");
const tables = parse(worksheet);

console.log(tables);

About

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Sample Files

dummy-with-mer-mec-6-out.xlsx

Output
[
  [
    ["Sr. No.", "Email", "Name ", "Age", "Promoted", "ID", "Joining Date", "Termination Date"],
    [1, "jeet@gmail.com", "Jeet D.", 26, "", "EM1", 45353, 45537],
    [2, "john@gmail.com", "John D.", 25, "", "EM2", 45373, 45732],
    [3, "adi@gmail.com", "Adi. D.", 25, "", "EM3", 45598, 45607],
  ],
  [
    ["Sr. No.", "EM ID", "Salary"],
    [1, "EM1", 1000000],
    [2, "EM2", 1200000],
  ],
  [
    ["Sr. No.", "EM ID", "Salary"],
    [1, "EM1", 1000000],
    [2, "EM2", 1200000],
    [3, "EM3", 1400000],
  ],
  [
    ["Sr. No.", "EM ID", "Salary"],
    [1, "EM1", 1000000],
    [2, "EM2", 1200000],
  ],
  [
    ["Sr. No.", "EM ID", "Salary"],
    [1, "EM1", 1000000],
    [2, "EM2", 1200000],
  ],
  [
    ["Sr. No.", "EM ID", "Salary"],
    [1, "EM1", 1000000],
    [2, "EM2", 1200000],
    [3, "EM3", 1400000],
  ],
];

dummy-with-ser-noec-2-out.xlsx

Output
[
  [
    ["Sr. No.", "Email", "Name ", "Age", "Promoted", "ID", "Joining Date", "Termination Date"],
    [1, "jeet@gmail.com", "Jeet D.", 26, "", "EM1", 45353, 45537],
    [2, "jogn@gmail.com", "John D.", 25, "", "EM2", 45373, 45732],
    [3, "adi@gmail.com", "Adi. D.", 25, "", "EM3", 45598, 45607],
  ],
  [
    ["Sr. No.", "EM ID", "Salary"],
    [1, "EM1", 1000000],
    [2, "EM2", 1200000],
    [3, "EM3", 1400000],
  ],
];

dummy-with-ser-sec-3-out.xlsx

Output
[
  [
    ["Email", "Name ", "Age"],
    ["jeet@gmail.com", "Jeet D.", 26],
    ["john@gmail.com", "John D.", 25],
    ["adi@gmail.com", "Adi. D.", 25],
  ],
  [
    ["Sr. No.", "ID", "Joining Date", "Termination Date"],
    [1, "EM1", 45353, 45537],
    [2, "EM2", 45373, 45732],
    [3, "EM3", 45598, 45607],
  ],
  [
    ["Sr. No.", "EM ID", "Salary"],
    [1, "EM1", 1000000],
    [2, "EM2", 1200000],
    [3, "EM3", 1400000],
  ],
];

You might also be interested in these projects:

  • xlsx: A library to parse and write Excel files. | homepage

Author

Jeet Dhandha

License

Released under the MIT License.

Keywords

FAQs

Package last updated on 10 Nov 2024

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc