{"name":"adm-zip","version":"0.4.11","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.11","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":"2aa54c84c4b01a9d0fb89bb11982a51f13e3d62a","tarball":"http://registry-npm.ywwl.com/adm-zip/download/adm-zip-0.4.11.tgz","fileCount":17,"integrity":"sha512-L8vcjDTCOIJk7wFvmlEUN7AsSb8T+2JrdP7KINBjzr24TJ5Mwj590sLu3BC7zNZowvJWa/JtPmD8eJCzdtDWjA==","signatures":[{"sig":"MEYCIQChr4jkZ5um3Yee3iD+eoYNleBiArjZo7pVbfSyjw7xIQIhAOAXnAbhR7EFdXinOD0zaf4jXtxeWoqFWztI/B58FqzV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":133440,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa92nlCRA9TVsSAnZWagAA7MUP/2YiiNXvW4YQyHt5f9Zq\nMnyJveqlhK98RlvZKRZOQGSwSdM1HIlxegfaO8rDU2VExpM7/LHxnp6WzADC\n13x9M6MA4BYgOST0RYmKUnL88sXrTb+eVKTqW0z5aRo7kAosav/LIvPRhiBn\nmncJ9YQSgbHKQBsiUDk6wCUZ+ALBRH7P/BoTeCLKjZeGj3fx05OHpFpnGnbK\n9vIL7jSBOuWNGv/9BVqkYg5/g0qPak64hN0+lgeoB66VOsAmwQT5Buz9Io3P\nYxHL+gPRDb18nEm3kVu7sxBf8XPLgVoFZu2WkaKY7Julj9ZyKfcJnOJk8L7b\nT+j4vtquJ+IZhoQhh4d22GyHwuM+PV43+kqcC4NYLKYYgGs+47LV7WGUf0We\nFjPfTXEes0Yn9st4tZC+p5VxAVDsQ/9JzVtUrFufGYuUjYuTASzShaqGJywc\n2hDes1BTmvlkNAgVBMAISA8eJXynnKZyaC1gmEj9/H9CL/bx7+obqp3Oc2qM\nUiU+YoiswKMfU83y792paCBUPKTVHhBd2umKE+RPAHXAGG5Tja8+iEKMwYuY\n9qibRjtnMm1Ouhj5SgrpPJp+6fyOSzbDWOwI87BQPITNA/9oRj9p2JHSwPAP\nD6gTBlnUPZha5UeKUVIOCw0DT7x/ruiaP/PE2t4xlDGLY0Tr1cpA5MouLucX\nktIV\r\n=k6Do\r\n-----END PGP SIGNATURE-----\r\n","size":32906,"noattachment":false,"key":"/adm-zip/-/adm-zip-0.4.11.tgz"},"main":"adm-zip.js","files":["adm-zip.js","headers","methods","util","zipEntry.js","zipFile.js"],"engines":{"node":">=0.3.0"},"gitHead":"80d259f0ff0393659d0d3b101b45db7678b25c61","_npmUser":{"name":"cthackers","email":"iacob.campia@gmail.com"},"repository":{"url":"git+https://github.com/cthackers/adm-zip.git","type":"git"},"_npmVersion":"5.6.0","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":"10.1.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/adm-zip_0.4.11_1526163940626_0.6389321497626306","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":1526163940736,"_cnpm_publish_time":1526163940736,"dist-tags":{"latest":"0.6.1"}}