GitHub - trevordixon/excel.js: Native node.js Excel file parser. Only supports xlsx for now.

1 min read Original article ↗

Skip to content

Navigation Menu

Excel.js Build Status

Native node.js Excel file parser. Only supports *.xlsx files for now.

Install

Use

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
});

Test

Run npm test

MIT License.

Thanks to all other contributors.