{"name":"adm-zip","version":"0.5.2","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.2","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":"8128ec30f4975d977b9285ebd764ae8db03fa6db","tarball":"http://registry-npm.ywwl.com/adm-zip/download/adm-zip-0.5.2.tgz","fileCount":20,"integrity":"sha512-lUI3ZSNsfQXNYNzGjt68MdxzCs0eW29lgL74y/Y2h4nARgHmH3poFWuK3LonvFbNHFt4dTb2X/QQ4c1ZUWWsJw==","signatures":[{"sig":"MEUCIQCBmAHx8WXNWF48aqCgDKjZicbxBXhFpLEvoJNVantnxgIgS7Dv1lUZVw+eHmCELO0YxeQHwK7VAud73DmSGDHWQqM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":96367,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgERFXCRA9TVsSAnZWagAACFwP/jfO/RaOs4fJ9oyunw2c\nuIVvgsunVoU8MA20nq7WGd229DQC0e8LHiQfY/A6cYuroPF8utAMy/XMJjjj\nqBXaiyJwa57DpKWVzN0T0J3OLn7KZmaIUw4jevCGW+haYcgGXzkNTNSkLCzd\njebMpdF91dv6TMs2/LX+3h1EL5k0xfiYdsfM7YoMYZdglMZWioD8eFSq/g1e\nzBLw0ISMJM3ZuGS5eW3qNewad5CR4Wo6DyTYywJWslkoNM8TgJCibqPnS0d8\nMMlYKZh6mVrrfLRz67EuU2BbW+EoSQKBQ+dbhjWCFeV3yfFD+4s0lYzZr1DF\nX72vlB3ldmgRP1E7+D2Wg8fUoTkHX4jHyp4323vQqT3rrsp9hrXWq3CF77v+\nI399CY0xGIVhhLCHrRoIiAJipG566SPtowhtudLFHsOfJudu0uTy7a9zjmrd\nWBd3k7Ppcbi2hDSt7pdAI50yApXjV2lT5kv1PZMJFBZtAHaugPvfkuI/RjZW\nB8YbO/wcl7pKV510toAJsO8BCRUSf2UYIfm5FXOTuFC7QkgrxZRcjA3i06UM\nYoHj1OO/OLH6r51Y5JVd1h8lx42TK3uUyTVyWhEWb7S6sadDeJ9wGxY48xFO\nUojwry/RI47ZhR3U+oGrxQ3QwDSsBQxg1DUfraaO57XvPrhepgiM/sf8wCIF\ntlX8\r\n=6wvY\r\n-----END PGP SIGNATURE-----\r\n","size":24246,"noattachment":false,"key":"/adm-zip/-/adm-zip-0.5.2.tgz"},"main":"adm-zip.js","engines":{"node":">=6.0"},"gitHead":"c5aeed445e4828172fd260ddcc51505d7e993b95","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.2_1611731286646_0.6401760424999403","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":1611731286778,"_cnpm_publish_time":1611731286778,"dist-tags":{"latest":"0.6.1"}}