0.1.0 • Published 8 years ago
xlsx-converter v0.1.0
xlsx-converter
convert xlsx to json, csv, etc (more will follow)
Install
$ npm install --save xlsx-converter
Usage
const {convert} = require('xlsx-converter');
convert('file.xlsx').then(result => {
// do something with the result
console.log(result);
});
Options
To
Convert to
type: String the file extension to convert to
default: json
options
- json
- csv
convert('file.xlsx', { to: 'csv' });
Sheets
An array containing the sheetPages to convert (as an number or by name).
type: Array sheetPages to convert
default: converts all
example '1', '2'
note: '1', '2' and 'Sheet1', 'Sheet2' have the same result
convert('file.xlsx', { to: 'csv' });
Write
Write the result
type: String destination
convert('file.xlsx', { write: 'out.json' });
Status
Work in progress
Documented options are available except converting to csv
TODO
soon
Under the hood
Contributing
- suggestions welcome! create suggestion
Issues
When finding an issue consider creating a gh-issue for easy follow up.
You can find open issues here. That wraps it up
0.1.0
8 years ago