{"name":"extract-zip","version":"2.0.0","description":"unzip a zip file into a directory using 100% javascript","main":"index.js","types":"index.d.ts","bin":{"extract-zip":"cli.js"},"scripts":{"ava":"ava","coverage":"nyc ava","lint":"yarn lint:js && yarn lint:ts && yarn tsd","lint:js":"eslint .","lint:ts":"eslint --config .eslintrc.typescript.js --ext .ts .","test":"yarn lint && ava","tsd":"tsd"},"author":{"name":"max ogden"},"license":"BSD-2-Clause","repository":{"type":"git","url":"git+https://github.com/maxogden/extract-zip.git"},"keywords":["unzip","zip","extract"],"engines":{"node":">= 10.12.0"},"dependencies":{"debug":"^4.1.1","get-stream":"^5.1.0","yauzl":"^2.10.0","@types/yauzl":"^2.9.1"},"optionalDependencies":{"@types/yauzl":"^2.9.1"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^2.25.0","@typescript-eslint/parser":"^2.25.0","ava":"^3.5.1","eslint":"^6.8.0","eslint-config-standard":"^14.1.1","eslint-plugin-ava":"^10.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-node":"^11.0.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","fs-extra":"^9.0.0","husky":"^4.2.3","lint-staged":"^10.0.9","nyc":"^15.0.0","tsd":"^0.11.0","typescript":"^3.8.3"},"eslintConfig":{"extends":["eslint:recommended","plugin:ava/recommended","plugin:import/errors","plugin:import/warnings","plugin:node/recommended","plugin:promise/recommended","standard"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":"yarn lint:js --fix","*.ts":"yarn lint:ts --fix"},"gitHead":"eb3c1edb8481bbf68da05cd3a824b1dcc697f908","bugs":{"url":"https://github.com/maxogden/extract-zip/issues"},"homepage":"https://github.com/maxogden/extract-zip#readme","_id":"extract-zip@2.0.0","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-i42GQ498yibjdvIhivUsRslx608whtGoFIhF26Z7O4MYncBxp8CwalOs1lnHy21A9sIohWO2+uiE4SRtC9JXDg==","shasum":"f53b71d44f4ff5a4527a2259ade000fb8b303492","tarball":"http://registry-npm.ywwl.com/extract-zip/download/extract-zip-2.0.0.tgz","fileCount":7,"unpackedSize":11321,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefpPkCRA9TVsSAnZWagAAXHcP/ijZ0+g+lW0AP2Jjy0GA\nc940sVp/e6eAi9Usa7+pDYCeRB98oq60M0vRWBGfjlLeeMs7uhqe9qZ2CRcd\nzRbyvAbomS1k+nWsYYLFQP0HH3ikKk4uNzp0vixrmpXMx/Lqae/H1/Av86BO\nzlTqfyUZh/vAUgrmfujYIu7CnH2H+ips1mjOJrTOSfECDschsddQH/hUpKnt\nCUsgNiqIjFCuvwBva+XFLue/UO6fhtvQjYtMC6LA9sdSVh4DL3CyLAtSBhbA\nOa8rOG18YGz2PYcJI3PqD8hgDZXnUQQYxCRDArCuhQMAYZ2jf6ycFx4GFlu+\nYOl7HlVp8MkDLVX9wk9FJIMTUagRqFDXBAO1NnCtIEKHMUPeuiCsHmGUju83\ni928+66CyEN6GP0IRcioHF29sB7+u+oJdZPzuuOMQwkZpJdVC9mtfQn0FtNC\nnajKD53F2RquOA3X3ImR++XgnKsbSZFRlFPxspXR+rUxJ/Qw/dJSz51Mzd6Q\nKwMR+b3F7fm+nyuZgD+f+Wb8CiekxJ6JN9aUFyUoM1fq0PEgBVAvDEQXQ9Wn\n85XsHaiMqzUx75Gs2fQ4e+FjMhEs+MFqAJwaGsVBkOyVuIrE8iCXqUapddW2\nCP4KlENH3G3WeT/jzE+PQXCnR1t0JR1LX177Sv/LuU3gcSGBCFLeP7gtPtM0\n/o8G\r\n=8X7d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGx0N8jKsApwWVahkTzoAttULcz61gGg11C61aDY9vYXAiEAoR0V7QkdyeChGJRHqgkVuEXxyhCSm6wxt8sGLYlYRKk="}],"size":4602,"noattachment":false,"key":"/extract-zip/-/extract-zip-2.0.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"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/extract-zip_2.0.0_1585353700031_0.26811210827991583"},"_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":1585353700160,"_cnpm_publish_time":1585353700160,"dist-tags":{"latest":"2.0.1"}}