{"_id":"gar","_rev":"8-0693709b4b15ad1840de47e5ea6bda4f","name":"gar","description":"The lightweight Node arguments parser","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"gar","version":"1.0.0","description":"The lightweight Node arguments parser","main":"index.js","scripts":{"test":"echo \"Tested before deployment.\" && exit 0","test-dev":"npm install && node test.js","prepublishOnly":"npm test"},"repository":{"type":"git","url":"git+https://github.com/ethanent/gar.git"},"keywords":["argument","args","argv","node","parse","cli","command-line","parsing","parser","command","light","lightweight"],"author":{"name":"Ethan Davis"},"license":"SEE LICENSE IN LICENSE.md","bugs":{"url":"https://github.com/ethanent/gar/issues"},"homepage":"https://github.com/ethanent/gar#readme","devDependencies":{"whew":"^1.1.3"},"gitHead":"ab4e90376a387fd43677e5a7bf62b0c31a621557","_id":"gar@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.2.0","_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"dist":{"integrity":"sha512-AMJg6xmcv+9iuKpwTf51rPVeX1+c+QxqO7KbUpd7uxHnQyGGCjSIm+qWIORl95XP4mpOFrHh198pSrW2mx6QjA==","shasum":"580d985ac9fd83a3ec6b4ae79d79d02c224d439b","tarball":"https://registry.npmjs.org/gar/-/gar-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1RoT/F+xloCnihB1F0lKe+tLj6a5mb1iKMX/6lRrXRAIgL1w7tG9ksge6bhOuwT8iCbGwcbJ37O9GQw4cVVcnHag="}]},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gar-1.0.0.tgz_1514677759983_0.8795996692497283"},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.0.1":{"name":"gar","version":"1.0.1","description":"The lightweight Node arguments parser","main":"index.js","scripts":{"test":"echo \"Tested before deployment.\" && exit 0","test-dev":"npm install && node test.js","prepublishOnly":"npm test"},"repository":{"type":"git","url":"git+https://github.com/ethanent/gar.git"},"keywords":["argument","args","argv","node","parse","cli","command-line","parsing","parser","command","light","lightweight"],"author":{"name":"Ethan Davis"},"license":"SEE LICENSE IN LICENSE.md","bugs":{"url":"https://github.com/ethanent/gar/issues"},"homepage":"https://github.com/ethanent/gar#readme","devDependencies":{"whew":"^1.1.3"},"gitHead":"223519dc0b48c35d551e5b8ea201929b82575e2e","_id":"gar@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.2.0","_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"dist":{"integrity":"sha512-zNWK1vMujJiII/tMW26WC8Sncm0qw54272Jizl+NzaPCrwYAG8Iusgw+euYj40YoI3LqfQR/u/qB9dzu2O0S0A==","shasum":"74ee1cc102e0b25ceb756b33e2be7a2a13f1fd24","tarball":"https://registry.npmjs.org/gar/-/gar-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF8M+SD0dpnYU6sH+SR/FhRtygyOWx3WUJ49OHkmZbWbAiAnCTZkprAWYO7jxL414j/eSQ3UwK/VD9z3JGB7srU7qg=="}]},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gar-1.0.1.tgz_1514678407437_0.16910207364708185"},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.0.2":{"name":"gar","version":"1.0.2","description":"The lightweight Node arguments parser","main":"index.js","scripts":{"test":"echo \"Tested before deployment.\" && exit 0","test-dev":"npm install && node test.js","prepublishOnly":"npm test"},"repository":{"type":"git","url":"git+https://github.com/ethanent/gar.git"},"keywords":["argument","args","argv","node","parse","cli","command-line","parsing","parser","command","light","lightweight"],"author":{"name":"Ethan Davis"},"license":"SEE LICENSE IN LICENSE.md","bugs":{"url":"https://github.com/ethanent/gar/issues"},"homepage":"https://github.com/ethanent/gar#readme","devDependencies":{"whew":"^1.1.3"},"gitHead":"44c8595ed662385becc310a72f366fac1698cbd6","_id":"gar@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"9.2.0","_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"dist":{"integrity":"sha512-Zn3tdQgiXQlVHiASU/cXzpo+EOC1qE/tOPdge6SjgJC39MxHFlESOHN38a9htTszCQy8rMWiPzoypL8sNv0ifg==","shasum":"5b7ecbbde1d3a1a8037cccc49971274250ff865b","tarball":"https://registry.npmjs.org/gar/-/gar-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCeskRfXWZAQTpxVGjj9fiJDbJfPxPQFxDm9ejSE6Sv8gIhAL7FMBFnWagfwjdLh7JwUmk6pFFaBTAzcnKiiflh87Xc"}]},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gar-1.0.2.tgz_1514690370033_0.5706195619422942"},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.0.3":{"name":"gar","version":"1.0.3","description":"The lightweight Node arguments parser","main":"index.js","scripts":{"test":"echo \"Tested before deployment.\" && exit 0","test-dev":"npm install && node test.js","prepublishOnly":"npm run test-dev"},"repository":{"type":"git","url":"git+https://github.com/ethanent/gar.git"},"keywords":["argument","args","argv","parse","cli","command-line","parser","command","lightweight"],"author":{"name":"Ethan Davis"},"license":"MIT","bugs":{"url":"https://github.com/ethanent/gar/issues"},"homepage":"https://github.com/ethanent/gar#readme","devDependencies":{"whew":"^1.1.3"},"files":["index.js","LICENSE"],"gitHead":"7fc3b2da03bb18a0a38dee1069e8f7894b7c49a5","_id":"gar@1.0.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"dist":{"integrity":"sha512-zDpwk/l3HbhjVAvdxNUTJFzgXiNy0a7EmE/50XT38o1z+7NJbFhp+8CDsv1Qgy2adBAwUVYlMpIX2fZUbmlUJw==","shasum":"cd6e954dff11821697a9ed5852c7ac5f18df02ce","tarball":"https://registry.npmjs.org/gar/-/gar-1.0.3.tgz","fileCount":4,"unpackedSize":4187,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClfPqs8sMLodB9mFTNL02d51SeFciytESmz1QbBsN2PwIgSTxLU76GeydzIFITenVHFESxgchDMw5qhYofgX+5y9I="}]},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gar_1.0.3_1518930017618_0.07514497225616656"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.0.4":{"name":"gar","version":"1.0.4","description":"The lightweight Node arguments parser","main":"index.js","scripts":{"test":"echo \"Tested before deployment.\" && exit 0","test-dev":"npm install && node test.js","prepublishOnly":"npm run test-dev"},"repository":{"type":"git","url":"git+https://github.com/ethanent/gar.git"},"keywords":["argument","args","argv","parse","cli","command-line","parser","command","lightweight"],"author":{"name":"Ethan Davis"},"license":"MIT","bugs":{"url":"https://github.com/ethanent/gar/issues"},"homepage":"https://github.com/ethanent/gar#readme","devDependencies":{"whew":"^1.1.3"},"gitHead":"898a31d0dde1de12d22a3eea0af4c2017191563f","_id":"gar@1.0.4","_npmVersion":"6.4.1","_nodeVersion":"10.14.0","_npmUser":{"name":"ethan_","email":"futuristiccake@gmail.com"},"dist":{"integrity":"sha512-w4n9cPWyP7aHxKxYHFQMegj7WIAsL/YX/C4Bs5Rr8s1H9M1rNtRWRsw+ovYMkXDQ5S4ZbYHsHAPmevPjPgw44w==","shasum":"f777bc7db425c0572fdeb52676172ca1ae9888b8","tarball":"https://registry.npmjs.org/gar/-/gar-1.0.4.tgz","fileCount":4,"unpackedSize":4400,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcLwoxCRA9TVsSAnZWagAAqlUP/2YHjWnm+X2PhknGc5ER\nNiWFqY8TtVpU20hklHihKv0BsyCjS5FNtvTIpDn6En+bwyCz4pJy1H/IXJ2j\nyBqz8hZFwbWuW8LwiyjpHVW47Cc5CaC3qYBeLwe7IGFhdTr2e+kT7yo27s5T\n2C5Fxr+VnusuRlkefgW+DcIhjRvyyLjChWG35PneBPYJXSn8uYP3SgFVdrlS\nD9sdrwtl7sdpWpjT4+htdT2aMOSySSbVOchcr9asmwLqFikVVLs6JoO1PnCD\nEDt+aAYwf8bddnJ6+fZQrt6QxwyyPZSE2KwSJUKzyo1GtAEX3oI8swp2lxWR\nGKrcPvkRcfhd+vStVGB5qzRfYLMvEFxUoE2hbicwCZ1R2eHTX33L8O/wJ/QF\nIXU0NCGCc67C5B10jdPH0F8vii6f7ul4WwMWT4391P8Yy54r1pRVSLkfz0CL\n4tBQ6LlGm7qQ/R6bxRh/iXljWfWgwytDnpUk3bKexu3Z4sA/2ZyxOZ6ZJzk+\niJfWQ1sITRWpVZaH2vKpnenBrZn80vnbLkktgoRAa2B9Gzqcea1S5oNkX0MB\n0SahW8foJcAldsosn+ZzNOLOyiq75esK/HTuEsiizotsGqZGCELiPwN3DH1R\nvTBoNZS8sucf9wvTogmCPVROzFJqMeppj/lvezJEmZVnBwkp83E//ThkJqr/\nRnsC\r\n=Mttc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGkSiQ03PtvyCu8BQgjwifRmNBCzi4txUjjngsjaCrcMAiBbMl3xNNtlLzKix6kOD8o6dyG+dyWN3yRnvB6eh32t2Q=="}]},"maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gar_1.0.4_1546586672999_0.40998278276206324"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"readme":"# gar\r\n> The lightweight Node arguments parser\r\n\r\n[GitHub](https://github.com/ethanent/gar) | [NPM](https://www.npmjs.com/package/gar)\r\n\r\n## Install\r\n\r\n```bash\r\nnpm i gar\r\n```\r\n\r\n## Use\r\n\r\n![gar usage demo](https://i.imgur.com/Ln6A8Nn.png)\r\n\r\n```javascript\r\nconst args = require('gar')(process.argv.slice(2))\r\n\r\nconsole.log(args)\r\n```\r\n\r\nSo for: `-h hey --toggle -ac --hey=hi -spaced \"hey there\" -num 1 lone`\r\n\r\n```json\r\n{\r\n\t\"h\": \"hey\",\r\n\t\"toggle\": true,\r\n\t\"a\": true,\r\n\t\"c\": true,\r\n\t\"hey\": \"hi\",\r\n\t\"spaced\": \"hey there\",\r\n\t\"num\": 1,\r\n\t\"_\": [\"lone\"]\r\n}\r\n```\r\n\r\n## Why use gar?\r\n\r\ngar is way more lightweight than other argument parsing packages.\r\n\r\nHere's a size comparison table:\r\n\r\nPackage | Size\r\n--- | ---\r\noptimist | [![optimist package size](https://packagephobia.now.sh/badge?p=optimist)](https://packagephobia.now.sh/result?p=optimist)\r\nminimist | [![minimist package size](https://packagephobia.now.sh/badge?p=minimist)](https://packagephobia.now.sh/result?p=minimist)\r\nargs-parser | [![args-parser package size](https://packagephobia.now.sh/badge?p=args-parser)](https://packagephobia.now.sh/result?p=args-parser)\r\ngar | [![gar package size](https://packagephobia.now.sh/badge?p=gar)](https://packagephobia.now.sh/result?p=gar)","maintainers":[{"name":"ethan_","email":"futuristiccake@gmail.com"}],"time":{"modified":"2024-02-20T02:54:38.662Z","created":"2017-12-30T23:49:20.102Z","1.0.0":"2017-12-30T23:49:20.102Z","1.0.1":"2017-12-31T00:00:07.539Z","1.0.2":"2017-12-31T03:19:30.129Z","1.0.3":"2018-02-18T05:00:17.685Z","1.0.4":"2019-01-04T07:24:33.168Z"},"homepage":"https://github.com/ethanent/gar#readme","keywords":["argument","args","argv","parse","cli","command-line","parser","command","lightweight"],"repository":{"type":"git","url":"git+https://github.com/ethanent/gar.git"},"author":{"name":"Ethan Davis"},"bugs":{"url":"https://github.com/ethanent/gar/issues"},"license":"MIT","readmeFilename":"README.md","users":{"rafaesc92":true}}