{"_id":"tinyclap","_rev":"7-46f61ac9becf41a684b451f095faff10","name":"tinyclap","time":{"modified":"2022-06-27T07:02:53.713Z","created":"2015-02-28T12:47:50.962Z","1.0.0":"2015-02-28T12:47:50.962Z","1.0.1":"2015-02-28T12:56:00.813Z"},"maintainers":[{"name":"alexbinary","email":"alexandre.bintz@gmail.com"}],"dist-tags":{"latest":"1.0.1"},"description":"a tiny command line arguments parser for Node.js","readme":"# tinyclap - A tiny command line arguments parser for Node.js\n\n```\nnpm install tinyclap\n```\n\nExample program :\n\n```javascript\nvar clap = require('tinyclap')();\nconsole.log(clap);\n```\n\nInput :\n\n```\n./index.js command\n           -a\n           -b42\n           -c=88\n           -d 21\n           -ef\n           -gh5\n           -foo=bar\n           --mn6\n           --opt1 value1\n           --opt2=value2\n           --opt3=\"value with spaces\"\n           --long-option-with-dashes\n           --long-option-with-value1=10\n           --long-option-with-value2 20\n           otherthing\n```\n\nOutput :\n\n```\n{ node: '/usr/bin/node',\n  file: '/home/john/index.js',\n  cmd: 'command'\n  argv:\n   { '5': true,\n     a: true,\n     b: 42,\n     c: '88',\n     d: '21',\n     e: true,\n     f: true,\n     g: true,\n     h: true,\n     foo: 'bar',\n     mn6: true,\n     opt1: 'value1',\n     opt2: 'value2',\n     opt3: 'value with spaces',\n     'long-option-with-dashes': true,\n     'long-option-with-value1': '10',\n     'long-option-with-value2': '20' },\n  argn:\n   [ 'a',\n     'b',\n     'c',\n     'd',\n     'e',\n     'f',\n     'g',\n     'h',\n     '5',\n     'foo',\n     'mn6',\n     'opt1',\n     'opt2',\n     'opt3',\n     'long-option-with-dashes',\n     'long-option-with-value1',\n     'long-option-with-value2',\n     'otherthing' ],\n  }\n```\n\n\n# Contact\n\nAlexandre Bintz <alexandre.bintz@gmail.com>  \nComments and suggestions are welcome.\n","versions":{"1.0.1":{"name":"tinyclap","version":"1.0.1","description":"a tiny command line arguments parser for Node.js","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/alexbinary/tinyclap.git"},"keywords":["command","line","arguments","parser"],"author":{"name":"Alexandre Bintz","email":"alexandre.bintz@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/alexbinary/tinyclap/issues"},"homepage":"https://github.com/alexbinary/tinyclap","gitHead":"4a967b12dfad6b0bd2e91653e6b8ba8385c3796c","_id":"tinyclap@1.0.1","_shasum":"b1981aca1303bc75b8505b2761cd576cdefd4bb1","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"alexbinary","email":"alexandre.bintz@gmail.com"},"maintainers":[{"name":"alexbinary","email":"alexandre.bintz@gmail.com"}],"dist":{"shasum":"b1981aca1303bc75b8505b2761cd576cdefd4bb1","tarball":"https://registry.npmjs.org/tinyclap/-/tinyclap-1.0.1.tgz","integrity":"sha512-U9gne4g7buYbQ61wvsdXXvHzMqZaXmvaH84Jkl9o0o6kv7/lo/EIfqICJSlFTvhu79fkBRS5iwSuNFwSSr3m7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeFbYaDSc0b2Gw6XxXn8qyRjo0MTzButdkh6wZtlnAzAIgKHMqh9PajNjUcsYy8Rqc3DDVJmlMZ4nkK07+e2AYCVo="}]}}},"homepage":"https://github.com/alexbinary/tinyclap","keywords":["command","line","arguments","parser"],"repository":{"type":"git","url":"https://github.com/alexbinary/tinyclap.git"},"author":{"name":"Alexandre Bintz","email":"alexandre.bintz@gmail.com"},"bugs":{"url":"https://github.com/alexbinary/tinyclap/issues"},"license":"ISC","readmeFilename":"README.md"}