{ "_args": [ [ { "raw": "decompress-zip@^0.3.0", "scope": null, "escapedName": "decompress-zip", "name": "decompress-zip", "rawSpec": "^0.3.0", "spec": ">=0.3.0 <0.4.0", "type": "range" }, "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/@expo/ngrok" ] ], "_from": "decompress-zip@>=0.3.0 <0.4.0", "_id": "decompress-zip@0.3.0", "_inCache": true, "_location": "/decompress-zip", "_nodeVersion": "5.9.0", "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/decompress-zip-0.3.0.tgz_1459525612722_0.3886219060514122" }, "_npmUser": { "name": "sheerun", "email": "sheerun@sher.pl" }, "_npmVersion": "3.7.3", "_phantomChildren": {}, "_requested": { "raw": "decompress-zip@^0.3.0", "scope": null, "escapedName": "decompress-zip", "name": "decompress-zip", "rawSpec": "^0.3.0", "spec": ">=0.3.0 <0.4.0", "type": "range" }, "_requiredBy": [ "/@expo/ngrok" ], "_resolved": "https://registry.npmjs.org/decompress-zip/-/decompress-zip-0.3.0.tgz", "_shasum": "ae3bcb7e34c65879adfe77e19c30f86602b4bdb0", "_shrinkwrap": null, "_spec": "decompress-zip@^0.3.0", "_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/@expo/ngrok", "author": { "name": "Bower" }, "bin": { "decompress-zip": "bin/decompress-zip" }, "bugs": { "url": "https://github.com/bower/decompress-zip/issues" }, "dependencies": { "binary": "^0.3.0", "graceful-fs": "^4.1.3", "mkpath": "^0.1.0", "nopt": "^3.0.1", "q": "^1.1.2", "readable-stream": "^1.1.8", "touch": "0.0.3" }, "description": "Extract files from a ZIP archive", "devDependencies": { "archiver": "^0.13.1", "chai": "^1.10.0", "coveralls": "^2.11.2", "fs-jetpack": "^0.5.3", "grunt": "^0.4.1", "grunt-cli": "^0.1.13", "grunt-contrib-jshint": "^0.11.0", "grunt-contrib-watch": "^0.6.1", "grunt-exec": "^0.4.2", "grunt-simple-mocha": "^0.4.0", "istanbul": "^0.3.5", "mocha": "^2.1.0", "tmp": "0.0.24" }, "directories": {}, "dist": { "shasum": "ae3bcb7e34c65879adfe77e19c30f86602b4bdb0", "tarball": "https://registry.npmjs.org/decompress-zip/-/decompress-zip-0.3.0.tgz" }, "engines": { "node": ">=0.10.0" }, "files": [ "bin", "lib" ], "gitHead": "e0f4c0b3e3aede745929cfbcdd85c19613116ab0", "homepage": "https://github.com/bower/decompress-zip#readme", "keywords": [ "zip", "unzip", "tar", "untar", "compress", "decompress", "archive", "extract", "zlib" ], "license": "MIT", "main": "lib/decompress-zip.js", "maintainers": [ { "name": "wibblymat", "email": "mat@wibbly.org.uk" }, { "name": "paulirish", "email": "paul.irish@gmail.com" }, { "name": "sheerun", "email": "sheerun@sher.pl" }, { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, { "name": "satazor", "email": "andremiguelcruz@msn.com" }, { "name": "desandro", "email": "desandrocodes@gmail.com" } ], "name": "decompress-zip", "optionalDependencies": {}, "readme": "# decompress-zip [![Build Status](https://travis-ci.org/bower/decompress-zip.svg?branch=master)](https://travis-ci.org/bower/decompress-zip) [![Coverage Status](https://coveralls.io/repos/bower/decompress-zip/badge.png?branch=master)](https://coveralls.io/r/bower/decompress-zip?branch=master)\n\n> Extract files from a ZIP archive\n\n\n## Usage\n\n### .extract(options)\n\nExtracts the contents of the ZIP archive `file`.\n\nReturns an EventEmitter with two possible events - `error` on an error, and `extract` when the extraction has completed. The value passed to the `extract` event is a basic log of each file and how it was compressed.\n\n**Options**\n- **path** *String* - Path to extract into (default `.`)\n- **follow** *Boolean* - If true, rather than create stored symlinks as symlinks make a shallow copy of the target instead (default `false`)\n- **filter** *Function* - A function that will be called once for each file in the archive. It takes one argument which is an object containing details of the file. Return true for any file that you want to extract, and false otherwise. (default `null`)\n- **strip** *Number* - Remove leading folders in the path structure. Equivalent to `--strip-components` for tar.\n\n```js\nvar DecompressZip = require('decompress-zip');\nvar unzipper = new DecompressZip(filename)\n\nunzipper.on('error', function (err) {\n console.log('Caught an error');\n});\n\nunzipper.on('extract', function (log) {\n console.log('Finished extracting');\n});\n\nunzipper.on('progress', function (fileIndex, fileCount) {\n console.log('Extracted file ' + (fileIndex + 1) + ' of ' + fileCount);\n});\n\nunzipper.extract({\n path: 'some/path',\n filter: function (file) {\n return file.type !== \"SymbolicLink\";\n }\n});\n```\n\nIf `path` does not exist, decompress-zip will attempt to create it first.\n\n### .list()\n\nMuch like extract, except:\n- the success event is `list`\n- the data for the event is an array of paths\n- no files are actually extracted\n- there are no options\n\n```js\nvar DecompressZip = require('decompress-zip');\nvar unzipper = new DecompressZip(filename)\n\nunzipper.on('error', function (err) {\n console.log('Caught an error');\n});\n\nunzipper.on('list', function (files) {\n console.log('The archive contains:');\n console.log(files);\n});\n\nunzipper.list();\n```\n\n\n## License\n\nMIT © Bower team\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/bower/decompress-zip.git" }, "scripts": { "test": "grunt test" }, "version": "0.3.0" }