Skip to content

Commit d01fa8c

Browse files
committed
Fixed bugs introduced with 0.4.9
1 parent c0cc85d commit d01fa8c

15 files changed

+2962
-2945
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
node_modules/
22
test/issue_*/unzipped/
3+
.idea
4+
*.iml

.idea/scopes/scope_settings.xml

-5
This file was deleted.

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ There are no other nodeJS libraries that ADM-ZIP is dependent of
4747
var zip = new AdmZip();
4848

4949
// add file directly
50-
zip.addFile("test.txt", new Buffer("inner content of the file"), "entry comment goes here");
50+
var content = "inner content of the file";
51+
zip.addFile("test.txt", Buffer.alloc(content.length, content), "entry comment goes here");
5152
// add local file
5253
zip.addLocalFile("/home/me/some_picture.png");
5354
// get everything as a buffer

0 commit comments

Comments
 (0)