Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

excel

trevordixon5.7kMIT1.0.1

Simple NodeJS XLSX parser.

excel, xlsx

readme

Excel.js Build Status

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

Install

npm install excel

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.

changelog

1.0.0 / 16.03.2018

  • Rewrote the library in ES6 syntax.
  • Migrated from unzip (no longer maintained) to unzipper (maintained fork).
  • Migrated from libxmljs (bindings for "native" XML parsing library which Webpack and other bundlers can't bundle) to xmldom and xpath (both of which are pure javascript).