{"name":"extract-zip","version":"1.7.0","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.2","debug":"^2.6.9","mkdirp":"^0.5.4","yauzl":"^2.10.0"},"devDependencies":{"rimraf":"^2.2.8","standard":"^5.2.2","tape":"^4.2.0","temp":"^0.8.3"},"directories":{"test":"test"},"gitHead":"c2b1c17477b9b72c7dabf1e4762dd7c419e8fa2e","bugs":{"url":"https://github.com/maxogden/extract-zip/issues"},"homepage":"https://github.com/maxogden/extract-zip#readme","_id":"extract-zip@1.7.0","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA==","shasum":"556cc3ae9df7f452c493a0cfb51cc30277940927","tarball":"http://registry-npm.ywwl.com/extract-zip/download/extract-zip-1.7.0.tgz","fileCount":7,"unpackedSize":10560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeeqz/CRA9TVsSAnZWagAALFwP+gPQKR2wPM2OpOnSKcoU\nK9iIcvdM6YAZvsSIpRUCYvqCh+e9OukaZT8cUMbmTiVSmU1cvyain/KrpabZ\nDsedjBEEYIv434YEsf4EQOYwNW0Rg75SG+FRMVlu8Iam/MmRJ6Q34/EfH3qb\nVJb4khDlj1cJVCrwQG2aeu9cVAP1WKkn1tKDGvvdM4ZorFWw0GPtzDEMi3Gh\nVnjn4qLcetcPDppBguEQxDhDQ0+UaiEOoBvv6jfTWBcciqkKLo42/tZTv0Me\nh7tVjN09NxIFZZKdkdd7wII9bHUBimeKCFHaYweZoXNix1+/EKc8oKh5WtOn\nn4Ip3czLcNHWvdEJU6qe4xh2LrSU0faVoU2jqY74o3ONFTzwEpF8OUkTUDBm\nySYKWbtztRXLzQAqK9kgeDcxuGRI4UU+4/2QJMMXJjA1+/1QaQzDyQFVJNAx\ntEhw4hEEIbotikBv/yIAPy51P+Ssk2kpTg3xMYgjoP77lBxv3E06eEJ6G7Va\ng8X1q5wkg3huvGwZ1ok5nn3oaN60/NrM+n81ghTMwo+Ju/55+Eh+H72PJxiZ\nJOIH6p3T+DhF0flf7KQMBtEY3K/kSbxeS/vbpihsB+/pBNfLyAS10HXGunZK\nAdkFxOzLQUjXVS7TECdeM4syyBgjsfxk/Q2FI9Q0gi5iT5GF3rDlZVaYc6sh\nhH1k\r\n=y8Pc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG3hPlLaicj5i5gNqRDa5F56iTpxOBzvHymtkKsFUJqoAiB2uqCqA/t12Orm6GpliNOYfGgwdxqS5g8QngJ64F1DCA=="}],"size":4060,"noattachment":false,"key":"/extract-zip/-/extract-zip-1.7.0.tgz"},"maintainers":[{"name":"malept","email":"nodejs.npm.nospam@lazymalevolence.com"},{"name":"maxogden","email":"max@maxogden.com"}],"_npmUser":{"name":"malept","email":"nodejs.npm.nospam@lazymalevolence.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/extract-zip_1.7.0_1585097983531_0.2719609479903069"},"_hasShrinkwrap":false,"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://npm.im/extract-zip)\n[![Uses JS Standard Style](https://cdn.jsdelivr.net/gh/standard/standard/badge.svg)](https://github.com/standard/standard)\n[![Build Status](https://github.com/maxogden/extract-zip/workflows/CI/badge.svg)](https://github.com/maxogden/extract-zip/actions?query=workflow%3ACI)\n\n## Installation\n\nMake sure you have Node 10 or greater installed.\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```javascript\nconst extract = require('extract-zip')\n\nasync function main () {\n  try {\n    await extract(source, { dir: target })\n    console.log('Extraction complete')\n  } catch (err) {\n    // handle any errors\n  }\n}\n```\n\n### Options\n\n- `dir` (required) - the path to the directory where the extracted files are written\n- `defaultDirMode` - integer - Directory Mode (permissions), defaults to `0o755`\n- `defaultFileMode` - integer - File Mode (permissions), defaults to `0o644`\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","publish_time":1585097983674,"_cnpm_publish_time":1585097983674,"dist-tags":{"latest":"2.0.1"}}