Skip to content

Commit

Permalink
add missing 'fs' dependency (#29)
Browse files Browse the repository at this point in the history
because 'fs' was not required fs.readFileSync was throwing an error
  • Loading branch information
burib authored and DiegoZoracKy committed May 21, 2019
1 parent d0f79f2 commit a716b60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const result = excelToJson({
```javascript
'use strict';
const excelToJson = require('convert-excel-to-json');
const fs = require('fs');

const result = excelToJson({
source: fs.readFileSync('SOME-EXCEL-FILE.xlsx') // fs.readFileSync return a Buffer
Expand Down Expand Up @@ -373,4 +374,4 @@ const result = excelToJson({
B: 'data of cell B4'
}]
}
```
```

0 comments on commit a716b60

Please sign in to comment.