Socket
Book a DemoInstallSign in
Socket

xlsx-to-json-parser

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xlsx-to-json-parser

Exact Password-Protected Excel (XLS/XLSX) Files to JSON

1.0.3
latest
Source
npmnpm
Version published
Weekly downloads
3
Maintainers
0
Weekly downloads
 
Created
Source

xlsx-to-json-parser

Exact Password-Protected Excel (XLS/XLSX) Files to JSON

Installation

npm install xlsx-to-json-parser

Usage

const xlsxToJson = require('xlsx-to-json-parser');

const json = await xlsxToJson({
  path: 'path/to/excel/file.xlsx',
  password: 'SuperSecretPassword',
});

Options

  • path (string, required): Path to the Excel file.
  • password (string, optional): Password to open the Excel file.

Output

The output is a JSON object with the following structure:

{
  "path": "path/to/excel/file.xlsx",
  "sheets": [
    {
      "id": 0,
      "name": "Sheet 1",
      "rows": [
        {
          "id": 1,
          "cells": [
            {
              "id": 2,
              "value": "Name"
            },
            {
              "id": 3,
              "value": "Email Address"
            }
          ]
        },
        {
          "id": 2,
          "cells": [
            {
              "id": 1,
              "value": 1
            },
            {
              "id": 2,
              "value": "Joe Blow"
            },
            {
              "id": 3,
              "value": "joe.blow@nowhere.com"
            }
          ]
        },
      ]
  }
}

Contact Information

If you ever need a hand or have any questions, feel free to reach out.

Fred Lackey
https://fredlackey.com
fred.lackey@gmail.com

Keywords

excel

FAQs

Package last updated on 16 Oct 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.