{"action":"closed","issue":{"url":"https://api.github.com/repos/thejoshwolfe/yauzl/issues/90","repository_url":"https://api.github.com/repos/thejoshwolfe/yauzl","labels_url":"https://api.github.com/repos/thejoshwolfe/yauzl/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/thejoshwolfe/yauzl/issues/90/comments","events_url":"https://api.github.com/repos/thejoshwolfe/yauzl/issues/90/events","html_url":"https://github.com/thejoshwolfe/yauzl/issues/90","id":353971628,"node_id":"MDU6SXNzdWUzNTM5NzE2Mjg=","number":90,"title":"usage demo comes error: \"TypeError: dest.on is not a function\"","user":{"login":"bi-kai","id":15070379,"node_id":"MDQ6VXNlcjE1MDcwMzc5","avatar_url":"https://avatars0.githubusercontent.com/u/15070379?v=4","gravatar_id":"","url":"https://api.github.com/users/bi-kai","html_url":"https://github.com/bi-kai","followers_url":"https://api.github.com/users/bi-kai/followers","following_url":"https://api.github.com/users/bi-kai/following{/other_user}","gists_url":"https://api.github.com/users/bi-kai/gists{/gist_id}","starred_url":"https://api.github.com/users/bi-kai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bi-kai/subscriptions","organizations_url":"https://api.github.com/users/bi-kai/orgs","repos_url":"https://api.github.com/users/bi-kai/repos","events_url":"https://api.github.com/users/bi-kai/events{/privacy}","received_events_url":"https://api.github.com/users/bi-kai/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-08-25T01:36:11Z","updated_at":"2018-08-28T02:07:57Z","closed_at":"2018-08-28T02:07:57Z","author_association":"NONE","body":"I run the usage demo:\r\n```javascript\r\nconst yauzl = require(\"yauzl\");\r\n\r\nyauzl.open(\"./OMStarPS_npi.capacity_11.5.0.zip\", {lazyEntries: true}, function(err, zipfile) {\r\n  if (err) throw err;\r\n  zipfile.readEntry();\r\n  zipfile.on(\"entry\", function(entry) {\r\n    if (/\\/$/.test(entry.fileName)) {\r\n      // Directory file names end with '/'.\r\n      // Note that entires for directories themselves are optional.\r\n      // An entry's fileName implicitly requires its parent directories to exist.\r\n      zipfile.readEntry();\r\n    } else {\r\n      // file entry\r\n      zipfile.openReadStream(entry, function(err, readStream) {\r\n        if (err) throw err;\r\n        readStream.on(\"end\", function() {\r\n          zipfile.readEntry();\r\n        });\r\n        readStream.pipe('./');\r\n      });\r\n    }\r\n  });\r\n});\r\n```\r\n\r\ncomes error: \r\n```\r\n_stream_readable.js:501\r\n  dest.on('unpipe', onunpipe);\r\n       ^\r\n\r\nTypeError: dest.on is not a function\r\n    at AssertByteCountStream.Readable.pipe (_stream_readable.js:501:8)\r\n    at D:\\node\\www\\test\\test-unzip\\yauzl.js:19:20\r\n    at D:\\node\\www\\test\\test-unzip\\node_modules\\yauzl\\index.js:575:7\r\n    at D:\\node\\www\\test\\test-unzip\\node_modules\\yauzl\\index.js:631:5\r\n    at D:\\node\\www\\test\\test-unzip\\node_modules\\fd-slicer\\index.js:32:7\r\n    at FSReqWrap.wrapper [as oncomplete] (fs.js:682:17)\r\n```\r\n\r\nI just wanna unzip a zip file."}}
{"actor":{"display_login":"bi-kai"}}