From 6439e4815e9fa4beae3636c685910b7e8fef5f3d Mon Sep 17 00:00:00 2001 From: noodles Date: Wed, 23 Apr 2014 23:14:32 +0800 Subject: [PATCH] Update README.md Corrected variable name in sample code to make it run --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cec6a27..d7128fa 100644 --- a/README.md +++ b/README.md @@ -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) {