{"name":"extract-zip","version":"1.0.2","description":"unzip a zip file into a directory using 100% pure gluten-free organic javascript","main":"index.js","bin":{"extract-zip":"cli.js"},"scripts":{"test":"node test/test.js"},"author":{"name":"max ogden"},"license":"BSD","repository":{"type":"git","url":"git@github.com:maxogden/extract-zip.git"},"keywords":["unzip","zip","extract"],"bugs":{"url":"https://github.com/maxogden/extract-zip/issues"},"homepage":"https://github.com/maxogden/extract-zip","dependencies":{"minimist":"0.1.0","debug":"0.7.4","async":"0.9.0","mkdirp":"0.5.0","concat-stream":"^1.4.6","through2":"0.6.3","yauzl":"^2.1.0"},"devDependencies":{"rimraf":"^2.2.8"},"directories":{"test":"test"},"_id":"extract-zip@1.0.2","_shasum":"cff2d67dd2c987d1ab0d7909ad408d8fdfdf0093","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"maxogden","email":"max+DONT+EMAIL+ME@maxogden.com"},"maintainers":[{"name":"maxogden","email":"max+DONT+EMAIL+ME@maxogden.com"}],"dist":{"shasum":"cff2d67dd2c987d1ab0d7909ad408d8fdfdf0093","tarball":"http://registry-npm.ywwl.com/extract-zip/download/extract-zip-1.0.2.tgz","integrity":"sha512-X3DX4MNVShzJ/XLsi742jZsdv6nsqcL5PpvcvNvd8nfatZ1bP42wJi0V46dANPRghlyriqNJI2jtst1vr+ZFnw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrf6Zub06VP6U/jZZskiS00Pz3Smoq4ZMEspoD96AhZwIgaF+Pol2m07c45R89nKnbf8ZTo1glfaghvh4wQnSD9eE="}],"size":278224,"noattachment":false,"key":"/extract-zip/-/extract-zip-1.0.2.tgz"},"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":1413556430422,"_cnpm_publish_time":1413556430422,"dist-tags":{"latest":"2.0.1"}}