https://github.com/fredlackey/xlsx-to-json-parser
Exact Password-Protected Excel (XLS/XLSX) Files to JSON
https://github.com/fredlackey/xlsx-to-json-parser
Last synced: about 1 month ago
JSON representation
Exact Password-Protected Excel (XLS/XLSX) Files to JSON
- Host: GitHub
- URL: https://github.com/fredlackey/xlsx-to-json-parser
- Owner: FredLackey
- License: apache-2.0
- Created: 2024-10-15T09:40:09.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-10-16T11:37:47.000Z (7 months ago)
- Last Synced: 2025-03-24T09:11:18.261Z (2 months ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xlsx-to-json-parser
Exact Password-Protected Excel (XLS/XLSX) Files to JSON
## Installation
```bash
npm install xlsx-to-json-parser
```## Usage
```javascript
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:
```json
{
"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": "[email protected]"
}
]
},
]
}
}
```## Contact Information
If you ever need a hand or have any questions, feel free to reach out.
**Fred Lackey**
[https://fredlackey.com](https://fredlackey.com)
[[email protected]](mailto:[email protected])