{"_id":"7z-extract","_rev":"3-ddd6ead75108b3d405ab9c9e10e8f004","name":"7z-extract","description":"7z wrapper with progress (promises/es6)","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.3":{"name":"7z-extract","version":"0.0.3","description":"7z wrapper with progress (promises/es6)","main":"index.js","directories":{"example":"examples"},"keywords":["7z","7zip","extract","archive","zip"],"author":{"name":"Lee M","email":"leemmccormick@gmail.com","url":"https://github.com/leemm/"},"license":"ISC","dependencies":{"fs-extra":"^0.30.0","lodash":"^4.13.1","simple-cli-parser":"0.0.3","uid-safe":"^2.1.1"},"repository":{"type":"git","url":"git+https://github.com/leemm/7z-extract.git"},"gitHead":"d16665d97614a1843eae3335e688fce57f28a241","bugs":{"url":"https://github.com/leemm/7z-extract/issues"},"homepage":"https://github.com/leemm/7z-extract#readme","_id":"7z-extract@0.0.3","scripts":{},"_shasum":"256469126cee02587d638bbc9e92fe40a7b5a95c","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.1","_npmUser":{"name":"leemm","email":"leemmccormick@gmail.com"},"dist":{"shasum":"256469126cee02587d638bbc9e92fe40a7b5a95c","tarball":"https://registry.npmjs.org/7z-extract/-/7z-extract-0.0.3.tgz","integrity":"sha512-vOcC28CxVCGGWIzO5rZoMe5JyY4KAi9C6/kNRSOEvLK6ajRCO9RoTpt2hLyeQQLSoyi31FH/Ixib0XSvIjh9zw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBzsj2Op52hjodHMvT6lceqmfg5FwI2Rnp5mIdrLCL+FAiEAxAvtlpMjyaZY3dXjniz9U9g1DMyPz7Jyabxh9GXlWzo="}]},"maintainers":[{"name":"leemm","email":"leemmccormick@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/7z-extract-0.0.3.tgz_1468432926430_0.9257309825625271"}}},"readme":"7z-extract\n==========\n\n[![Build Status](https://travis-ci.org/leemm/7z-extract.svg?branch=master)](https://travis-ci.org/leemm/7z-extract)\n\nWrapper for 7zip which attempts to provide an extraction status (something the 7z command doesn't really do).\n\n# Prerequisites\n\nThe **7z** command is required and needs to be in PATH or the root of your application i.e. where package.json is sitting.\n\n```sh\n# OSX\n$ brew update && brew doctor && brew install p7zip\n# Ubuntu\n$ sudo apt-get install p7zip-full\n```\n\n# Install\n```\nnpm install 7z-extract --save\n```\n\n# API\n\n```javascript\nconst archive = new Zip(options);\n```\n* **input** *String* - The input file path\n* **output** *String* - The output path (optional, if not supplied uses /tmp)\n* **createFolder** *Boolean* - Creates a random folder name to extract to the files to. (default ```false```)\n\n```javascript\narchive.list(); //- returns a promise, the result of which is an object including array of files in the archive\narchive.extract(progress); //- extracts the archive and returns a promise, progress function optionally returns current status as object (index, totalNumberOfFiles, percentage)\n```\n\n# Usage\n\nTo see info on a CBZ file.\n\n```javascript\n'use strict';\n\nconst path = require('path'),\n    Zip = require('../index'),\n    inputFile = path.join(__dirname, 'archive.zip'),\n    outputPath = path.join(__dirname), // optional, if not supplied uses /tmp\n    progress = info => {\n        console.log(info);\n    };\n\nconst archive = new Zip({ input: inputFile, output: outputPath, createFolder: true });\n\n  // archive.list()\n  //  .then(res => { if (res){ console.log('Success!', res); } })\n  //  .catch(err => { console.error(err); });\n\narchive.extract(progress)\n    .then(res => { console.log('Success!', res); })\n    .catch(err => { console.error(err); });\n\n```","maintainers":[{"name":"leemm","email":"leemmccormick@gmail.com"}],"time":{"modified":"2022-06-12T14:08:39.206Z","created":"2016-07-13T18:02:08.281Z","0.0.3":"2016-07-13T18:02:08.281Z"},"homepage":"https://github.com/leemm/7z-extract#readme","keywords":["7z","7zip","extract","archive","zip"],"repository":{"type":"git","url":"git+https://github.com/leemm/7z-extract.git"},"author":{"name":"Lee M","email":"leemmccormick@gmail.com","url":"https://github.com/leemm/"},"bugs":{"url":"https://github.com/leemm/7z-extract/issues"},"license":"ISC","readmeFilename":"README.md"}