Skip to content

Commit

Permalink
Merge pull request #208 from pmuens/patch-1
Browse files Browse the repository at this point in the history
Fix data accessing example in README
  • Loading branch information
cthackers authored Mar 29, 2018
2 parents 032566b + 12d2099 commit e116bc1
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 e116bc1

Please sign in to comment.