Skip to content

Commit 12d2099

Browse files
authored
Fix data accessing example in README
1 parent 032566b commit 12d2099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ There are no other nodeJS libraries that ADM-ZIP is dependent of
3434
zipEntries.forEach(function(zipEntry) {
3535
console.log(zipEntry.toString()); // outputs zip entries information
3636
if (zipEntry.entryName == "my_file.txt") {
37-
console.log(zipEntry.data.toString('utf8'));
37+
console.log(zipEntry.getData().toString('utf8'));
3838
}
3939
});
4040
// outputs the content of some_folder/my_file.txt

0 commit comments

Comments
 (0)