mirror of
https://github.com/bdnugget/excel.js.git
synced 2026-11-07 05:17:27 +00:00
39 lines
698 B
Markdown
39 lines
698 B
Markdown
Excel.js [](https://travis-ci.org/trevordixon/excel.js)
|
|
========
|
|
|
|
Native node.js Excel file parser. Only supports `*.xlsx` files for now.
|
|
|
|
Install
|
|
=======
|
|
|
|
```js
|
|
npm install excel
|
|
```
|
|
|
|
Use
|
|
===
|
|
|
|
```js
|
|
import parseXlsx from 'excel';
|
|
|
|
parseXlsx('Spreadsheet.xlsx').then((data) => {
|
|
// data is an array of arrays
|
|
});
|
|
```
|
|
|
|
If you have multiple sheets in your spreadsheet,
|
|
|
|
```js
|
|
parseXlsx('Spreadsheet.xlsx', '2').then((data) => {
|
|
// data is an array of arrays
|
|
});
|
|
````
|
|
|
|
Test
|
|
=====
|
|
Run `npm test`
|
|
|
|
MIT License.
|
|
|
|
**Thanks to [all other contributors](https://github.com/trevordixon/excel.js/graphs/contributors).**
|