{"name":"adm-zip","version":"0.5.10","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.10","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":"4a51d5ab544b1f5ce51e1b9043139b639afff45b","tarball":"http://registry-npm.ywwl.com/adm-zip/download/adm-zip-0.5.10.tgz","fileCount":19,"integrity":"sha512-x0HvcHqVJNTPk/Bw8JbLWlWoo6Wwnsug0fnYYro1HBrjxZ3G7/AZk7Ahv8JwDe1uIcz8eBqvu86FuF1POiG7vQ==","signatures":[{"sig":"MEQCIGLIwVYGLYzrL6CHCRYIiUda/LtOkM6i6AV0BQItT85+AiAWUddqsgSCRUpYQqkhHr9CwZ8Jv1KJATU9r0ym3mS3Rg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":103122,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjoZeYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr8mw//eEK8XOXBvkl1dt+cQS48jmJtbQHxBVxPmZ5MWW6TOnNYmvL4\r\n8bW8E73VgG6qwP7/gWiDWeisKy6ga3HUCP6eT4NBjweGTXfM01cJYgcWTsDc\r\nVpxDlQe0dW0ASUXiVARDdVuRxXcxJs1irQpJjUFxzeYocIwYN4JkdtE1CXYG\r\n7/Gbgpn9sNTKAT785exVSLdlak6QVOYrt4r4GyUhObuExI5XwiqwtLC/BnCY\r\n2qItnrIpuOlj51C4U3G9lo/IYHQ+qy9fGuMP09kdnHd4b/Hg0FDJz9eFgu80\r\ntygpSceq9/7dXcvbag+10qxqijPjdylNbjM4g0l+2ftXIpc5g0v2fSdBEyQG\r\n3wzImK4XSlb44c6pC7J2XimxL8xNqRh8EgrqDlEF9h5AO4h8ITtm/9dlmAq5\r\njYKPNPn8JxMc3/itqFUrhpETxK7i1HYBwbV24uYZRLFD16EpFAS6ZlA+wE8P\r\nn6Ofx1WO6TVGxZq0fujVZgzuNBZCEp4urdt91/KCeWQonuwNcW6KU45zH/eT\r\nZTF5M8C76gdEUW5i9vLA7wXf49UEBTKQRtxguyIzJAQKg9C27WYPLXf6rAq6\r\nQszMbLa+hHj34/zWPVYNiTGVq4GPer1PxII23QNS/uqmfMgqnR4WSs1zQEyx\r\nti6gW1i0Y1C3PuhDsxFY75y2imw6f+hZNKQ=\r\n=eHLR\r\n-----END PGP SIGNATURE-----\r\n","size":22909,"noattachment":false,"key":"/adm-zip/-/adm-zip-0.5.10.tgz"},"main":"adm-zip.js","engines":{"node":">=6.0"},"gitHead":"9e52c3fb9deca9726570d9621802d3d276a113a5","scripts":{"test":"mocha -R spec","format":"npm run format:prettier","test:format":"npm run format:prettier:raw -- --check","format:prettier":"npm run format:prettier:raw -- --write","format:prettier:raw":"prettier \"**/*.{js,yml,json}\""},"_npmUser":{"name":"cthackers","email":"iacob.campia@gmail.com"},"repository":{"url":"git+https://github.com/cthackers/adm-zip.git","type":"git"},"_npmVersion":"8.11.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":"16.15.1","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.4","mocha":"^10.2.0","rimraf":"^3.0.2","prettier":"^2.2.1"},"_npmOperationalInternal":{"tmp":"tmp/adm-zip_0.5.10_1671534488654_0.17474027085734","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":1671534488848,"_cnpm_publish_time":1671534488848,"dist-tags":{"latest":"0.6.1"}}