Readme code highlighting

This commit is contained in:
catamphetamine authored and Trevor Dixon committed 2018-03-16 13:56:38 +01:00
1 parent d364a43364
commit 589e801e25
1 file changed
+18 -10
+18 -10
View File
@@ -1,25 +1,33 @@
Excel.js [![Build Status](https://travis-ci.org/trevordixon/excel.js.svg?branch=master)](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
=====