{"_id":"@tryghost/extract-zip","_rev":"4086360","name":"@tryghost/extract-zip","description":"unzip a zip file into a directory using 100% javascript","dist-tags":{"latest":"1.6.6"},"maintainers":[{"name":"9larsons","email":""},{"name":"aileencgn","email":""},{"name":"allouis","email":""},{"name":"bobvaneck","email":""},{"name":"chrisraible","email":""},{"name":"cobbspur","email":""},{"name":"erik-ghost","email":""},{"name":"erisds","email":"erisds@gmail.com"},{"name":"ghost-slimer","email":""},{"name":"hadret","email":""},{"name":"ibalosh","email":""},{"name":"jloh","email":""},{"name":"joeegrigg","email":""},{"name":"johnonolan","email":""},{"name":"jonatan-ghost","email":""},{"name":"jonhickman","email":""},{"name":"kernalghost","email":""},{"name":"kevinansfield","email":""},{"name":"lsinger","email":""},{"name":"mike182uk","email":""},{"name":"minimaluminium","email":""},{"name":"pauladamdavis","email":""},{"name":"sagzy","email":""},{"name":"sam-lord","email":""},{"name":"tmciesco","email":""},{"name":"vershwal","email":""},{"name":"zimoatghost","email":""}],"time":{"modified":"2025-12-02T22:11:11.000Z","created":"2018-05-11T08:07:19.263Z","1.6.6":"2018-05-11T08:07:19.263Z"},"users":{},"author":{"name":"max ogden"},"repository":{"type":"git","url":"git+https://github.com/maxogden/extract-zip.git"},"versions":{"1.6.6":{"name":"@tryghost/extract-zip","version":"1.6.6","description":"unzip a zip file into a directory using 100% javascript","main":"index.js","bin":{"extract-zip":"cli.js"},"scripts":{"test":"standard && node test/test.js"},"author":{"name":"max ogden"},"license":"BSD-2-Clause","repository":{"type":"git","url":"git+https://github.com/maxogden/extract-zip.git"},"keywords":["unzip","zip","extract"],"dependencies":{"concat-stream":"1.6.0","debug":"2.6.9","mkdirp":"0.5.0","yauzl":"2.4.1"},"devDependencies":{"rimraf":"^2.2.8","standard":"^5.2.2","tape":"^4.2.0","temp":"^0.8.3"},"directories":{"test":"test"},"gitHead":"ecf4ad64a2870323e0889a82f9f33d31a5b05ba6","bugs":{"url":"https://github.com/maxogden/extract-zip/issues"},"homepage":"https://github.com/maxogden/extract-zip#readme","_id":"@tryghost/extract-zip@1.6.6","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"aileencgn","email":"aileen@ghost.org"},"dist":{"shasum":"937e0e775fec6dea937ac49d73a068bcafb67f50","size":4094,"noattachment":false,"key":"/@tryghost/extract-zip/-/@tryghost/extract-zip-1.6.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/@tryghost/extract-zip/download/@tryghost/extract-zip-1.6.6.tgz"},"maintainers":[{"name":"9larsons","email":""},{"name":"aileencgn","email":""},{"name":"allouis","email":""},{"name":"bobvaneck","email":""},{"name":"chrisraible","email":""},{"name":"cobbspur","email":""},{"name":"erik-ghost","email":""},{"name":"erisds","email":"erisds@gmail.com"},{"name":"ghost-slimer","email":""},{"name":"hadret","email":""},{"name":"ibalosh","email":""},{"name":"jloh","email":""},{"name":"joeegrigg","email":""},{"name":"johnonolan","email":""},{"name":"jonatan-ghost","email":""},{"name":"jonhickman","email":""},{"name":"kernalghost","email":""},{"name":"kevinansfield","email":""},{"name":"lsinger","email":""},{"name":"mike182uk","email":""},{"name":"minimaluminium","email":""},{"name":"pauladamdavis","email":""},{"name":"sagzy","email":""},{"name":"sam-lord","email":""},{"name":"tmciesco","email":""},{"name":"vershwal","email":""},{"name":"zimoatghost","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/extract-zip_1.6.6_1526026039140_0.16542271882284387"},"_hasShrinkwrap":false,"publish_time":1526026039263,"_cnpm_publish_time":1526026039263,"_cnpmcore_publish_time":"2021-12-17T12:56:58.204Z"}},"readme":"# extract-zip\n\nUnzip written in pure JavaScript. Extracts a zip into a directory. Available as a library or a command line program.\n\nUses the [`yauzl`](http://npmjs.org/yauzl) ZIP parser.\n\n[![NPM](https://nodei.co/npm/extract-zip.png?global=true)](https://nodei.co/npm/extract-zip/)\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n[![Build Status](https://travis-ci.org/maxogden/extract-zip.svg?branch=master)](https://travis-ci.org/maxogden/extract-zip)\n\n## Installation\n\nGet the library:\n\n```\nnpm install extract-zip --save\n```\n\nInstall the command line program:\n\n```\nnpm install extract-zip -g\n```\n\n## JS API\n\n```js\nvar extract = require('extract-zip')\nextract(source, {dir: target}, function (err) {\n // extraction is complete. make sure to handle the err\n})\n```\n\n### Options\n\n- `dir` - defaults to `process.cwd()`\n- `defaultDirMode` - integer - Directory Mode (permissions) will default to `493` (octal `0755` in integer)\n- `defaultFileMode` - integer - File Mode (permissions) will default to `420` (octal `0644` in integer)\n- `onEntry` - function - if present, will be called with `(entry, zipfile)`, entry is every entry from the zip file forwarded from the `entry` event from yauzl. `zipfile` is the `yauzl` instance\n\nDefault modes are only used if no permissions are set in the zip file.\n\n## CLI Usage\n\n```\nextract-zip foo.zip <targetDirectory>\n```\n\nIf not specified, `targetDirectory` will default to `process.cwd()`.\n","_attachments":{},"homepage":"https://github.com/maxogden/extract-zip#readme","bugs":{"url":"https://github.com/maxogden/extract-zip/issues"},"license":"BSD-2-Clause"}