{"name":"adm-zip","version":"0.5.1","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.1","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":"32e51c6fe88370f4389b424567b78a345e79ebc6","tarball":"http://registry-npm.ywwl.com/adm-zip/download/adm-zip-0.5.1.tgz","fileCount":19,"integrity":"sha512-a5ABmIFUJ9OxHV5zrXM9Q41JzpRIflFtdgpL4UQM9DsTHHxQzPRaeyAdnMW7kxL0NRWm/NHafJdj6pO+ty7L2g==","signatures":[{"sig":"MEUCIEnI8nVSKmnXRSaOY0/MmxuerEyGQcg1K9jeNk4/leKrAiEAyp1U/swIhyKwnn5jMwCeERRXW6zMFywqV28pS01Tsn4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":84795,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfwMQNCRA9TVsSAnZWagAA19oQAIV5d7L2Q0nlYw5J8Jdq\n3eF9dF1G0ZYMGL/NmHaaYuZ0eCk/FKIIwW6Ck76HWygZWL5xlrZl+Shrl0LW\nbo5+SHBRA3naBVDEpsNFYpA112Ay9krDGBAqpRvzqBNDecS2psb+FJPj5BgE\ngCSpwvcV0ZRJR9+gm4zvIGIfHyB8kKSlnU7cu5oNKoeKlsnfxWXkW4evw3VZ\nZt70S5kny66T1mZlnKeHnXk8Iboh0D/jJhiw7GPS27QBuf1RZz31V9E6bbga\nzaZxXMxhxDqDY/CIGcA5z5JgbAQsKFvX6IQ1Id4yY0JlWi9yjCDwFguWjcpZ\nb7t0RhFjGlFww02OxiNC4J0q2RTwHWgRajGJ4sLo2PA4o0XRN+L8PoVsiwCC\nnmhhWJKpkfI2FM+T7pe1DyG0qybp8fziWzLvn0ZU7WfMye2pwbPKqnYxVOuZ\nOHkxIYaQq7a+LhuDPtnCv8F/xeVtQMYgeGnqJ2ggZH3idH1opjbJMqv2RyGg\nYiV4NE1tt5LDtjUyd4/you2+680hhqL4Oc7aKgEFAhlcbG6y/zlfLRjyEgD7\nFoE6vWCM+4DjnmGnaTAkotWIulpTF3zvtb6b0ZX8bXEK/QWzr+proORogVZl\nX4YIgAPtYY8bkt89SP0126zsCq98P4Et4xFThHFXhWFp7eaSzM2YyR/+cAp7\n/VTQ\r\n=R2MW\r\n-----END PGP SIGNATURE-----\r\n","size":20264,"noattachment":false,"key":"/adm-zip/-/adm-zip-0.5.1.tgz"},"main":"adm-zip.js","engines":{"node":">=6.0"},"gitHead":"dd415aed4a04da2deacd271bd2db98fdbe794b22","scripts":{"test":"mocha test/mocha.js test/crc/index.js test/multibyte/test.js"},"_npmUser":{"name":"cthackers","email":"iacob.campia@gmail.com"},"repository":{"url":"git+https://github.com/cthackers/adm-zip.git","type":"git"},"_npmVersion":"6.14.5","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.4.0","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^8.2.1","rimraf":"^3.0.2"},"_npmOperationalInternal":{"tmp":"tmp/adm-zip_0.5.1_1606468620691_0.6062297252882296","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":1606468620854,"_cnpm_publish_time":1606468620854,"dist-tags":{"latest":"0.6.1"}}