{"name":"adm-zip","version":"0.4.14","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.14","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":"2cf312bcc9f8875df835b0f6040bd89be0a727a9","tarball":"http://registry-npm.ywwl.com/adm-zip/download/adm-zip-0.4.14.tgz","fileCount":18,"integrity":"sha512-/9aQCnQHF+0IiCl0qhXoK7qs//SwYE7zX8lsr/DNk1BRAHYxeLZPL4pguwK29gUEqasYQjqPtEpDRSWEkdHn9g==","signatures":[{"sig":"MEUCIQD3BiRWE6bw9CqDSPaWNEqmVvFlAREvq4153+Ze3BeJ5wIgT+My0t06YiodvQ1KQ7xzCjJkn8U63khYCV9IhcRAcKU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":79478,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePFB7CRA9TVsSAnZWagAABWwP/2qKV9i/csXWKtkOgJaz\n+sVouqeA1uXsmBFEUIu6PDQ/0eV6X0oo6X5DorG4N4xkwgTRxq3Aaf3KvXua\n2Z2eNUYkozmC1XPFipqkV9Pm3LIhyQrXfxb/8034MDiOstFY7Hj6u2yOHMsr\nF6CfL15Nl/B6U9QycOWnbhAqw7zU3s2wh7gpgg9LyJ0updaW1SYRlCl3KMGI\nJaD9TLkWzvnT1ZlhjkAl5HrXzoBCzSm9gmav3Ka0GuNVlhrApmbCi2StYijB\ny1RjtJgYhpWMrFBh1K//Xjj38BrIYnzfVlCaaI5gubFfVO2b+VNY+ibgGOYX\na5Unkt7X2lQ/u9lRE3hnkdm+Tm1OEMTsswPEWa8CGTCP+uWKcnzuJlWr3F9m\nK8yBuldbKv3PQzv9g+8aYfehAQkYONX37DdVo1iWz5hSaIpglpjYFt0VZDn4\ngPVWzC174sahql55ZaRJTPp9fwoC1KWgJ9+RVrSpFKXnRgBs+Q5AbK+NznjU\nap8OobSiT2O40gVf13aRAb9SY7LM3Ek6i28YE77MmUEgxGBnuM7zVyz0EPEn\n46MSQxASGJxxllOvUHhe45KMsLNDaTBwbZvB7bYe3C3qErUAQfSa2PmkoS9g\nKhgtwf4RziYlKFkasbIkeMGHHGbUZGIdCqj0zs+psrpBdQJ0QDwaAKMytoK4\nMLWS\r\n=+2na\r\n-----END PGP SIGNATURE-----\r\n","size":18427,"noattachment":false,"key":"/adm-zip/-/adm-zip-0.4.14.tgz"},"main":"adm-zip.js","engines":{"node":">=0.3.0"},"gitHead":"81d09ca2ff8df0f53b38fc31d27bcd497455da40","scripts":{"test":"mocha test/mocha.js test/crc/index.js"},"_npmUser":{"name":"cthackers","email":"iacob.campia@gmail.com"},"repository":{"url":"git+https://github.com/cthackers/adm-zip.git","type":"git"},"_npmVersion":"6.13.4","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":"12.14.0","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rimraf":"^2.6.2"},"_npmOperationalInternal":{"tmp":"tmp/adm-zip_0.4.14_1581011066775_0.41917720524904656","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":1581011066907,"_cnpm_publish_time":1581011066907,"dist-tags":{"latest":"0.6.1"}}