From 12d209983c2242e049ae7bc39afa141e66296283 Mon Sep 17 00:00:00 2001 From: Philipp Muens Date: Wed, 28 Mar 2018 15:11:26 +0200 Subject: [PATCH] Fix data accessing example in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d8e537c..bf04ac5 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ There are no other nodeJS libraries that ADM-ZIP is dependent of zipEntries.forEach(function(zipEntry) { console.log(zipEntry.toString()); // outputs zip entries information if (zipEntry.entryName == "my_file.txt") { - console.log(zipEntry.data.toString('utf8')); + console.log(zipEntry.getData().toString('utf8')); } }); // outputs the content of some_folder/my_file.txt