{"_id":"archiver-promise","_rev":"3-c33ab03a6b66f79fc70490efd1c2d8a2","name":"archiver-promise","description":"Promise wrapper for archiver","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"archiver-promise","version":"1.0.0","description":"Promise wrapper for archiver","keywords":["archiver","zip","tar","promise","async"],"main":"index.js","scripts":{},"repository":{"type":"git","url":"git+https://github.com/maichong/archiver-promise.git"},"author":{"name":"Liang","email":"liang@maichong.it","url":"https://github.com/liangxingchen"},"license":"MIT","bugs":{"url":"https://github.com/maichong/archiver-promise/issues"},"homepage":"https://github.com/maichong/archiver-promise#readme","dependencies":{"archiver":"^1.2.0"},"gitHead":"16d10143dc579d4fef0cc996d83dd566fa218739","_id":"archiver-promise@1.0.0","_shasum":"a7c4e52e607fd976c54a3025045417336834f652","_from":".","_npmVersion":"3.10.6","_nodeVersion":"5.12.0","_npmUser":{"name":"liangxingchen","email":"liang@maichong.it"},"dist":{"shasum":"a7c4e52e607fd976c54a3025045417336834f652","tarball":"https://registry.npmjs.org/archiver-promise/-/archiver-promise-1.0.0.tgz","integrity":"sha512-6/vW4PWUKyc1KsuacbRh7a7W2s8BBRwL6IM2zNCRUESWks22tMAMr1h45pGbMzzeyNi5XIlniuubcxuc5sBkxQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFPa58XgPtcufavszgJigFmBNRMdUq0HhQA1nrCPyQSoAiEA5kQICmc/uUw5In0WjjmSSxXLce8XIljmGkmcXk7uJ5k="}]},"maintainers":[{"name":"liangxingchen","email":"liang@maichong.it"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/archiver-promise-1.0.0.tgz_1479963170882_0.25646193884313107"}}},"readme":"# archiver-promise\n\nPromise wrapper for archiver\n\n```js\n\nvar archiver = require('archiver-promise');\n\nvar archive = archiver('path/to/file.zip',{\n  store: true\n  // more options https://archiverjs.com/docs/\n});\n\n// append a file from stream\nvar file1 = __dirname + '/file1.txt';\narchive.append(fs.createReadStream(file1), { name: 'file1.txt' });\n\n// append a file from string\narchive.append('string cheese!', { name: 'file2.txt' });\n\n// append a file from buffer\nvar buffer3 = new Buffer('buff it!');\narchive.append(buffer3, { name: 'file3.txt' });\n\n// append a file\narchive.file('file1.txt', { name: 'file4.txt' });\n\n// append files from a directory\narchive.directory('subdir/');\n\n// append files from a glob pattern\narchive.glob('subdir/*.txt');\n\n// finalize the archive\narchive.finalize().then(function(){\n  console.log('done');\n});\n\n```\n","maintainers":[{"name":"liangxingchen","email":"liang@maichong.it"}],"time":{"modified":"2022-06-13T03:21:50.431Z","created":"2016-11-24T04:52:52.673Z","1.0.0":"2016-11-24T04:52:52.673Z"},"homepage":"https://github.com/maichong/archiver-promise#readme","keywords":["archiver","zip","tar","promise","async"],"repository":{"type":"git","url":"git+https://github.com/maichong/archiver-promise.git"},"author":{"name":"Liang","email":"liang@maichong.it","url":"https://github.com/liangxingchen"},"bugs":{"url":"https://github.com/maichong/archiver-promise/issues"},"license":"MIT","readmeFilename":"README.md"}