forked from sheetjs/sheetjs
SheetJS
dd0a649c95
- parsing comments (h/t @kinwahlai, @hmalphettes) - XLSX.version now exposed in source - code coverage - updated SSF to 0.5.2 - updated tests/files
14 lines
408 B
JavaScript
14 lines
408 B
JavaScript
|
|
if(typeof require !== 'undefined' && typeof exports !== 'undefined') {
|
|
exports.read = XLSX.read;
|
|
exports.readFile = XLSX.readFile;
|
|
exports.utils = XLSX.utils;
|
|
exports.version = XLSX.version;
|
|
exports.main = function(args) {
|
|
var zip = XLSX.read(args[0], {type:'file'});
|
|
console.log(zip.Sheets);
|
|
};
|
|
if(typeof module !== 'undefined' && require.main === module)
|
|
exports.main(process.argv.slice(2));
|
|
}
|