I am making a desktop app using ember.js
and electron
. I need to read data from excel file.
Can anyone give me simple code snippet for this? Are there any external libraries for this purpose?
I am making a desktop app using ember.js
and electron
. I need to read data from excel file.
Can anyone give me simple code snippet for this? Are there any external libraries for this purpose?
You can use js-xlsx. Add it as bower dependecy and add its imports to your ember-cli-build
file as:
app.import('bower_components/js-xlsx/dist/jszip.js');
app.import('bower_components/js-xlsx/dist/xlsx.min.js');
Handle it as the documentation's parsing-workbooks section shows. (handleFile
function is explaining it well.)