Skip to content

Commit

Permalink
Fixed bugs introduced with 0.4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
fileformats committed May 12, 2018
1 parent c0cc85d commit d01fa8c
Show file tree
Hide file tree
Showing 15 changed files with 2,962 additions and 2,945 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules/
test/issue_*/unzipped/
.idea
*.iml
5 changes: 0 additions & 5 deletions .idea/scopes/scope_settings.xml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ There are no other nodeJS libraries that ADM-ZIP is dependent of
var zip = new AdmZip();

// add file directly
zip.addFile("test.txt", new Buffer("inner content of the file"), "entry comment goes here");
var content = "inner content of the file";
zip.addFile("test.txt", Buffer.alloc(content.length, content), "entry comment goes here");
// add local file
zip.addLocalFile("/home/me/some_picture.png");
// get everything as a buffer
Expand Down
Loading

0 comments on commit d01fa8c

Please sign in to comment.