{"name":"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":"4fe49d66b07abf95eaaf52400acb84c9aaa3cc55","bugs":{"url":"https://github.com/maxogden/extract-zip/issues"},"homepage":"https://github.com/maxogden/extract-zip#readme","_id":"extract-zip@1.6.6","_shasum":"1290ede8d20d0872b429fd3f351ca128ec5ef85c","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.5","_npmUser":{"name":"malept","email":"nodejs.npm.nospam@lazymalevolence.com"},"dist":{"shasum":"1290ede8d20d0872b429fd3f351ca128ec5ef85c","tarball":"http://registry-npm.ywwl.com/extract-zip/download/extract-zip-1.6.6.tgz","integrity":"sha512-zzFIURH1cHodCESbwDsIijbki47jXAvffc044IpX4uBiTWldwQ2viYkYrb94x49ZvAcanD0gobvQwgAaaQOUvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQWFv+CZKK/KZzqDjaXoaEIZEe2Aczl6b0sECs6lomxwIgU48RsmAOX3tqmFNmZwXK4BW0GC8HxmQq81oL0XUH6tc="}],"size":4114,"noattachment":false,"key":"/extract-zip/-/extract-zip-1.6.6.tgz"},"maintainers":[{"name":"malept","email":"nodejs.npm.nospam@lazymalevolence.com"},{"name":"maxogden","email":"max@maxogden.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/extract-zip-1.6.6.tgz_1509424671032_0.9591677887365222"},"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":1509424671142,"_cnpm_publish_time":1509424671142,"dist-tags":{"latest":"2.0.1"}}