Skip to content

Commit

Permalink
Fix data accessing example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuens committed Mar 28, 2018
1 parent 032566b commit 12d2099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 12d2099

Please sign in to comment.