{"action":"opened","issue":{"url":"https://api.github.com/repos/thejoshwolfe/yazl/issues/14","labels_url":"https://api.github.com/repos/thejoshwolfe/yazl/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/thejoshwolfe/yazl/issues/14/comments","events_url":"https://api.github.com/repos/thejoshwolfe/yazl/issues/14/events","html_url":"https://github.com/thejoshwolfe/yazl/issues/14","id":64618470,"number":14,"title":"OS X Archive Utility fails to extract zip file","user":{"login":"joaomoreno","id":22350,"avatar_url":"https://avatars.githubusercontent.com/u/22350?v=3","gravatar_id":"","url":"https://api.github.com/users/joaomoreno","html_url":"https://github.com/joaomoreno","followers_url":"https://api.github.com/users/joaomoreno/followers","following_url":"https://api.github.com/users/joaomoreno/following{/other_user}","gists_url":"https://api.github.com/users/joaomoreno/gists{/gist_id}","starred_url":"https://api.github.com/users/joaomoreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaomoreno/subscriptions","organizations_url":"https://api.github.com/users/joaomoreno/orgs","repos_url":"https://api.github.com/users/joaomoreno/repos","events_url":"https://api.github.com/users/joaomoreno/events{/privacy}","received_events_url":"https://api.github.com/users/joaomoreno/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-26T19:52:29Z","updated_at":"2015-03-26T19:52:29Z","closed_at":null,"body":"With the latest version `2.2.0` the following code produces a zip file that OS X's Archive Utility cannot open:\r\n\r\n```javascript\r\nvar yazl = require('yazl');\r\nvar fs = require('fs');\r\n\r\nvar zipfile = new yazl.ZipFile();\r\n\r\nvar ostream = fs.createWriteStream('out.zip');\r\nzipfile.outputStream.pipe(ostream);\r\n\r\nzipfile.addBuffer(new Buffer('hello'), 'hello.txt');\r\nzipfile.end();\r\n```\r\n\r\n![screen shot 2015-03-26 at 20 51 24](https://cloud.githubusercontent.com/assets/22350/6855585/e19d8272-d3f9-11e4-8498-4ef409e28327.png)\r\n\r\n**System log**\r\n\r\n```\r\n26/03/15 20:51:23.972 Archive Utility[29825]: bomCopierFatalError:Couldn't read pkzip signature.\r\n26/03/15 20:51:23.973 Archive Utility[29825]: bomCopierFatalError:Not a central directory signature\r\n```"}}