{"name":"extract-zip","version":"2.0.1","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.17.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":"^3.2.0","@typescript-eslint/parser":"^3.2.0","ava":"^3.5.1","eslint":"^7.2.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":"d64157132e8d9841054f72bb5d76b87a8d9f246d","bugs":{"url":"https://github.com/maxogden/extract-zip/issues"},"homepage":"https://github.com/maxogden/extract-zip#readme","_id":"extract-zip@2.0.1","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==","shasum":"663dca56fe46df890d5f131ef4a06d22bb8ba13a","tarball":"http://registry-npm.ywwl.com/extract-zip/download/extract-zip-2.0.1.tgz","fileCount":6,"unpackedSize":10749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4IdNCRA9TVsSAnZWagAAgxAQAJJy5ouSkFuMWlCDsSeY\naoNA0q2l1Fc1AjGtB9bb0W/IJai4skOAkSPIBeUu1Rlk0ygbAXS8umtrU1Ag\nA1d0DF+hHwWDd3b3AWA5AlrWEqdZOwSejWcHf6EvXLj4hp3FQd6RT/Y9VgAU\nfqzVjCSgMtY4FpxXuYmkk0HfSmb1kqpUZH5wDlIypOFPnvSotL7RfHMU7eYc\noq325npL/3FgTv2S+zse/v/kSmZOK/HNP5XQP6lkHDgitFPrhXuKzwUD/MkQ\nV+utzko7J+w9B9Qb8r/eP4Lw++NjaLqMSKAYfq6O4OrEQqSC84f+cjO+C7qE\neaPgelpDa1vZsKJhssN+sh8WRRqI/nFyoyPFiI+Stao7tJ6hwpI33zp7Jee9\nTLdY9waLm2ttU2KHFyxDBZa9Qq/HzKKmCSjMKQvNo3h7s1YCeRb09Cs3D++i\nSe0797DqY/3asVc55HayZ3xO1iKi4qBepWmDosjkMIsMoj0h42B0Xu4cMfxc\nCSkERs1cHEZ6EHUWWkzxNhJAxrZHY2TY75I7yC+WY77ULu++nBZB1e5G5LzP\njYivHHaeVrBmUVzkc3JUjR1NCCvO4yN9ioRz6/xFoA39OgnsxaC+Db0fpRGI\n1NhGcZMue4/gRa4oIMcw9YwP5W5uAt9V/NQrIizRPnJOhXlR5JwBl/zShtbo\nukYN\r\n=BDoG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJOFiT/rLdl26pDYG+pWaGHDveH6TohQY6aFjJhqbBDQIhAJp0zXA270pd1Xwo2wevxHGaqdar4hSMlO1zoA9uyvQP"}],"size":4361,"noattachment":false,"key":"/extract-zip/-/extract-zip-2.0.1.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.1_1591773004722_0.18272913550259506"},"_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":1591773004849,"_cnpm_publish_time":1591773004849,"dist-tags":{"latest":"2.0.1"}}