{"name":"extract-zip","version":"1.6.7","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.1","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":"422a39ff47996b802946169a3a47f1496253c81e","bugs":{"url":"https://github.com/maxogden/extract-zip/issues"},"homepage":"https://github.com/maxogden/extract-zip#readme","_id":"extract-zip@1.6.7","_shasum":"a840b4b8af6403264c8db57f4f1a74333ef81fe9","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.14.2","_npmUser":{"name":"malept","email":"nodejs.npm.nospam@lazymalevolence.com"},"dist":{"shasum":"a840b4b8af6403264c8db57f4f1a74333ef81fe9","tarball":"http://registry-npm.ywwl.com/extract-zip/download/extract-zip-1.6.7.tgz","fileCount":8,"unpackedSize":10427,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbBh4bCRA9TVsSAnZWagAAN70P/igN43hKAyENs2t6/C+g\ndQuPkUE4jA5WzhqK0jvGyzX49Xh5535pj0ig+VkEavl3J/bX0Bu0kfY0/YDD\nfm9s7RAh4Q3zTizXt2BkI9nosdsOOFvRbaCphGntcl5ChOe/2TcnmHtScbmG\nEaxD9Ja6WwD8dNJXcXSYRVhZyqe8YlX1nv35VW/h3M2bAGl5hJz8/uk5U7W1\nSSc9XRRfyzDurIvDWBRjw+lw68t3yWGJ8dGugq+dT67PoBUmH2caDt9sgAfj\nq0cYy7k3Bc0jWa5CxMdNgCGrK56xwLnkejGy0yvtrp2FoIBx+nReJOq4foSk\nkCF29rpA8g69TU1MrXuARWVuTtYqstX1ZkvHCGuy5qJQZDHwaU4UVds3SPrZ\nnAnDaFU18bOaY1f4Q/OowHXhq9DJ8UsULd5KpF2JBibDi1mQcOgFWo3Cx+Hj\niUWB2xP2Zp3paPvLudb28Vl3ijA6WUh9PnEaAblrdPjknQzqXLWks+8pnmdk\nQYUavRJiiRD9YqHRTlhLiI+K5waNi4SIehaqzdyuiQnTEPh+7y1yW751UEpK\naMNsqm46mn27vER/sBcV5gzFmTnzd7pbDjhICqZvih4U7Sq7BT1ItTmgaCXh\noHiYh/RenHrg/gM6at5d/jk8bcLk80wbu7H0/TUaFfBKo2/zqpZbMKFVuX7N\n4z8p\r\n=55W3\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-NWFb/0zxv3qh7f6hEy+F+Y+jPAqt1bfT52GR8Vi7sEFg2fBZlG/aM6ZrSGPUscP0I4JRhtgVG6I17HOuD7GESw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFJr2mLgV036Lv0qqBX9/YEuZ+RPCC2BSBQRJ0XPsMcgAiATR1nuv5+yNKbxIILc4ueN5PRDFhdvINW9U5gL97z77g=="}],"size":4122,"noattachment":false,"key":"/extract-zip/-/extract-zip-1.6.7.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.7_1527127578224_0.9162413148655575"},"_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":1527127578263,"_cnpm_publish_time":1527127578263,"dist-tags":{"latest":"2.0.1"}}