{"name":"adm-zip","version":"0.5.4","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.5.4","maintainers":[{"name":"cthackers","email":"iacob.campia@gmail.com"}],"homepage":"https://github.com/cthackers/adm-zip","bugs":{"url":"https://github.com/cthackers/adm-zip/issues","email":"sy@another-d-mention.ro"},"dist":{"shasum":"af1f08c92cf9aa21b525231bce340fbdc39bd265","tarball":"http://registry-npm.ywwl.com/adm-zip/download/adm-zip-0.5.4.tgz","fileCount":20,"integrity":"sha512-GMQg1a1cAegh+/EgWbz+XHZrwB467iB/IgtToldvxs7Xa5Br8mPmvCeRfY/Un2fLzrlIPt6Yu7Cej+8Ut9TGPg==","signatures":[{"sig":"MEUCIDYosU5u06czhouChcEkBOHxZMX5Bf1qWAfcZY33M/ZUAiEA+EbYmd3kFSmhCdb07F5Pch3KptJGL8CQFJPvzaH8OGk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":103970,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgReBWCRA9TVsSAnZWagAAHW4P/A2Wg9xA2WNDy0ot6NPQ\nIdWiVTXCt3aE6EW0t2SiEI5ozQdhp5VcDqf20eCzmz1tCqPotrWkaLFdogG7\nY3EITjA72tFSiFrgUjtlL+ijbzt5Kprd55796LHHPGc0pEcAoyiWdbbypG3q\nlLExrCrDomz00Mmxid4wRuQcH0JXed0tmacnqmveNoQ5fcS3i5Fvuk4J9ZKC\nFaYU4NjQk2DyjwAcS3v5Lb6V6RmW3aONF48WleHqbsqfdyxAy2g7ggV0zpDc\noVpS6OsfAHRdmMqhjsqds45x7y0bXG9vUtq8uH8+e9sxN2FQ7jGUOu0DnEL1\n/Q1fos/bjPycFqxaEgk200N19kLa4c0A2/xymw7Dvth8/0C7QsieNRtt1XeD\nt6oyNV7Oeu7G2uRdbXQH04J51Ggy1Jn01/M//sUSr9p50XjxwZ5liqn8InWs\nz+zjiTTeGV+xq6Nc0ZlP0MiB9gJRuXn3CNwbA9Arj57xw1E6cQrNDRwskEdT\no3NXmwWH7Z5i0LwOsCf3krHnJeiktK+9s6xnGmWJQun3c0T9NOnffpCHbfQZ\nQrDQ8cBJe7p0D9z9ZB8e6hjHQCjq/TEnMiDjzQWMibEjb+gfUMAS7u6XwsD+\ndwaY6ktY1LZI5vyYa5Zau6FzQy+c5hpmoXOEfiJ74UGUp3hcIF9gRqiKX5IG\nPy2l\r\n=qL7T\r\n-----END PGP SIGNATURE-----\r\n","size":25902,"noattachment":false,"key":"/adm-zip/-/adm-zip-0.5.4.tgz"},"main":"adm-zip.js","engines":{"node":">=6.0"},"gitHead":"3d8bfc7a86da066131b2208a77148d2970e6234f","scripts":{"test":"mocha -R spec"},"_npmUser":{"name":"cthackers","email":"iacob.campia@gmail.com"},"repository":{"url":"git+https://github.com/cthackers/adm-zip.git","type":"git"},"_npmVersion":"6.14.11","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":"14.16.0","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^8.2.1","rimraf":"^3.0.2"},"_npmOperationalInternal":{"tmp":"tmp/adm-zip_0.5.4_1615192149910_0.36897062090108346","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":1615192150041,"_cnpm_publish_time":1615192150041,"dist-tags":{"latest":"0.6.1"}}