{"name":"adm-zip","version":"0.4.13","keywords":["zip","methods","archive","unzip"],"author":{"url":"https://github.com/cthackers","name":"Nasca Iacob","email":"sy@another-d-mention.ro"},"license":"MIT","_id":"adm-zip@0.4.13","maintainers":[{"name":"cthackers","email":"sy@another-d-mention.ro"}],"homepage":"https://github.com/cthackers/adm-zip","bugs":{"url":"https://github.com/cthackers/adm-zip/issues","email":"sy@another-d-mention.ro"},"dist":{"shasum":"597e2f8cc3672151e1307d3e95cddbc75672314a","tarball":"http://registry-npm.ywwl.com/adm-zip/download/adm-zip-0.4.13.tgz","fileCount":18,"integrity":"sha512-fERNJX8sOXfel6qCBCMPvZLzENBEhZTzKqg6vrOW5pvoEaQuJhRU4ndTAh6lHOxn1I6jnz2NHra56ZODM751uw==","signatures":[{"sig":"MEYCIQCgAs+ExKfTjHPjsSKNCx40h8c1jqrGILhgvOh9S00WOQIhAM8Z4RwnMW4wQsPWDazM614vVIkUdA/fOg5FWlGkuTY4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6njeCRA9TVsSAnZWagAAwtwP/jKBJ4jpuDRiQSmgthv0\n5dCZ9y73YWoB9d3E6W6x6jzBS22rlel2Fhmoi6pfNFWvEFWR6HACB4JmF9wW\n/mK95Rkc6wOGmGsNu9g/hcOSTHB5EO2y0KdDa9tkjNEo6fkGPLRnZBkyHyUk\nkCWcN0zz3qlGYQyTE5mq12buOSqqm5Gem0HYIP1oVXJjHzBTo/B9iJ0cO5h0\nS+OdYi/xWJDtEMlqPUZ/922LSsbUsd0IHc5+iXHloghnS9dn3zzn8LHGTSNn\nDEakwt8N9oWgzqKl/kTETQ3R+EQjMr+ytpMiWu1g2D1/zr2+Tcbf+Od4dVXg\nnlJu3vpLtFvgvQH+/EemvL6zFbfb7NyrZZSEohYZsrFCkktcMc+tEIZpMxOl\nhArIUpT6hQ51rhnvaDi6prPf+SOgdFI0clQR8gevfNzJt27jLzpslMSoxhE9\nl6TP7C2uGV7vlUDo7jqgztznfALjYU1ZP1mKdEwAospqvyoObx79XAirl1kj\nu77U9tpw0BLiVXK6PmihapgC8sqC1T3tE+jtlFRg1TX40vsWIWMlbhf8iINY\nXIrC6ufCI4CpUqo2jVgp9Xr0GVt0jQ9RTAIRx8IgJ38hepixNUnQtoo4ZdOj\nTnIUu8eP7CqDO217FSw4jO7ujjaaNLnMwZO46K8GPAulZfa8teR7hBnBDpuR\nNha5\r\n=v4aU\r\n-----END PGP SIGNATURE-----\r\n","size":17077,"noattachment":false,"key":"/adm-zip/-/adm-zip-0.4.13.tgz"},"main":"adm-zip.js","engines":{"node":">=0.3.0"},"gitHead":"e3fbb92496b0571ce4fd1376dab7ffe3dfa09c20","scripts":{"test":"mocha test/mocha.js"},"_npmUser":{"name":"cthackers","email":"iacob.campia@gmail.com"},"repository":{"url":"git+https://github.com/cthackers/adm-zip.git","type":"git"},"_npmVersion":"6.4.1","description":"Javascript implementation of zip for nodejs with support for electron original-fs. Allows user to create or extract zip files both in memory or to/from disk","directories":{},"_nodeVersion":"11.1.0","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rimraf":"^2.6.2"},"_npmOperationalInternal":{"tmp":"tmp/adm-zip_0.4.13_1542093021594_0.6730178586646911","host":"s3://npm-registry-packages"},"readme":"# ADM-ZIP for NodeJS with added support for electron original-fs\n\nADM-ZIP is a pure JavaScript implementation for zip data compression for [NodeJS](https://nodejs.org/).\n\n# Installation\n\nWith [npm](https://www.npmjs.com/) do:\n\n    $ npm install adm-zip\n\n## What is it good for?\n\nThe library allows you to:\n\n-   decompress zip files directly to disk or in memory buffers\n-   compress files and store them to disk in .zip format or in compressed buffers\n-   update content of/add new/delete files from an existing .zip\n\n# Dependencies\n\nThere are no other nodeJS libraries that ADM-ZIP is dependent of\n\n# Examples\n\n## Basic usage\n\n```javascript\nvar AdmZip = require(\"adm-zip\");\n\n// reading archives\nvar zip = new AdmZip(\"./my_file.zip\");\nvar password = \"1234567890\";\nvar zipEntries = zip.getEntries(); // an array of ZipEntry records - add password parameter if entries are password protected\n\nzipEntries.forEach(function (zipEntry) {\n    console.log(zipEntry.toString()); // outputs zip entries information\n    if (zipEntry.entryName == \"my_file.txt\") {\n        console.log(zipEntry.getData().toString(\"utf8\"));\n    }\n});\n// outputs the content of some_folder/my_file.txt\nconsole.log(zip.readAsText(\"some_folder/my_file.txt\"));\n// extracts the specified file to the specified location\nzip.extractEntryTo(/*entry name*/ \"some_folder/my_file.txt\", /*target path*/ \"/home/me/tempfolder\", /*maintainEntryPath*/ false, /*overwrite*/ true);\n// extracts everything\nzip.extractAllTo(/*target path*/ \"/home/me/zipcontent/\", /*overwrite*/ true);\n\n// creating archives\nvar zip = new AdmZip();\n\n// add file directly\nvar content = \"inner content of the file\";\nzip.addFile(\"test.txt\", Buffer.from(content, \"utf8\"), \"entry comment goes here\");\n// add local file\nzip.addLocalFile(\"/home/me/some_picture.png\");\n// get everything as a buffer\nvar willSendthis = zip.toBuffer();\n// or write everything to disk\nzip.writeZip(/*target file name*/ \"/home/me/files.zip\");\n\n// ... more examples in the wiki\n```\n\nFor more detailed information please check out the [wiki](https://github.com/cthackers/adm-zip/wiki).\n\n[![Build Status](https://travis-ci.org/cthackers/adm-zip.svg?branch=master)](https://travis-ci.org/cthackers/adm-zip)\n","publish_time":1542093021743,"_cnpm_publish_time":1542093021743,"dist-tags":{"latest":"0.6.1"}}