Update README.md

Corrected variable name in sample code to make it run
This commit is contained in:
noodles 2014-04-23 23:14:32 +08:00
parent 2933ba1850
commit 6439e4815e

View File

@ -44,7 +44,7 @@ Simple usage (walks through every cell of every sheet and dumps the values):
var XLSX = require('xlsx');
var workbook = XLSX.readFile('test.xlsx');
var sheet_name_list = xlsx.SheetNames;
var sheet_name_list = workbook.SheetNames;
sheet_name_list.forEach(function(y) {
var worksheet = workbook.Sheets[y];
for (z in worksheet) {