mirror of
https://github.com/bdnugget/excel.js.git
synced 2026-11-07 05:17:27 +00:00
Readme code highlighting
This commit is contained in:
1 parent
d364a43364
commit
589e801e25
1 file changed
+18
-10
@@ -1,25 +1,33 @@
|
||||
Excel.js [](https://travis-ci.org/trevordixon/excel.js)
|
||||
========
|
||||
|
||||
Native node.js Excel file parser. Only supports xlsx for now.
|
||||
Native node.js Excel file parser. Only supports `*.xlsx` files for now.
|
||||
|
||||
Install
|
||||
=======
|
||||
npm install excel
|
||||
|
||||
```js
|
||||
npm install excel
|
||||
```
|
||||
|
||||
Use
|
||||
====
|
||||
import parseXlsx from 'excel';
|
||||
===
|
||||
|
||||
parseXlsx('Spreadsheet.xlsx').then((data) => {
|
||||
// data is an array of arrays
|
||||
});
|
||||
```js
|
||||
import parseXlsx from 'excel';
|
||||
|
||||
parseXlsx('Spreadsheet.xlsx').then((data) => {
|
||||
// data is an array of arrays
|
||||
});
|
||||
```
|
||||
|
||||
If you have multiple sheets in your spreadsheet,
|
||||
|
||||
parseXlsx('Spreadsheet.xlsx', '2').then((data) => {
|
||||
// data is an array of arrays
|
||||
});
|
||||
```js
|
||||
parseXlsx('Spreadsheet.xlsx', '2').then((data) => {
|
||||
// data is an array of arrays
|
||||
});
|
||||
````
|
||||
|
||||
Test
|
||||
=====
|
||||
|
||||
Reference in new issue
Block a user