forked from sheetjs/sheetjs
SheetJS
635310b639
- phased out Array map invocations (fixes #620 h/t @dullin) - "array" type supports Uint8Array - Headless browser examples - blank cells are omitted or stubbed (fixes #779 h/t @domxa) - removed transferrables from demo
15 lines
407 B
JavaScript
15 lines
407 B
JavaScript
var fs = require('fs');
|
|
var xlsx = require('../../dist/xlsx.full.min');
|
|
var page = require('webpage').create();
|
|
|
|
page.open('http://www.google.com', function(status) {
|
|
|
|
var data = fs.read('sheetjs.xlsx', {mode: 'rb', charset: 'utf8'});
|
|
var workbook = xlsx.read(data, {type: 'binary'});
|
|
data = xlsx.utils.sheet_to_csv(workbook.Sheets['SheetJS']);
|
|
console.log("Data: " + data);
|
|
|
|
phantom.exit();
|
|
});
|
|
|