{"_id":"argsparser","_rev":"29-6c32b1f108ab50112fb6d15480fd5ca1","name":"argsparser","description":"A tiny command line arguments parser","dist-tags":{"stable":"0.0.6","latest":"0.0.7"},"versions":{"0.0.3":{"name":"argsparser","description":"A tiny command line arguments parser","version":"0.0.3","author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"http://github.com/kof/node-argsparser.git"},"keywords":["arguments","options","command line","parser"],"directories":{"lib":"./lib"},"main":"./lib/argsparser","engines":{"node":">= 0.2.0"},"scripts":{"install":"node ./test/test.js"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"_id":"argsparser@0.0.3","_engineSupported":true,"_npmVersion":"0.2.13-2","_nodeVersion":"v0.3.2","dist":{"shasum":"c6782e62e97ce60c6e5245c1115da6d732410539","tarball":"https://registry.npmjs.org/argsparser/-/argsparser-0.0.3.tgz","integrity":"sha512-lRDJ+KlL4e3fc6eGEkNXcNqNKS9jWhH8ImrViQ4kXbRpqNQTfUWZtH8oWL1vJnAL2uGIO3ITMJGYCFMB/rwm+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJz4H9V+YfkvqpglddXjZ6BCuz7iFv4suHeAMHbqdZTwIhALXoJwgG6DxOT5JJaA2Q/mnJC1UwOn2gWAGxy7XNtor1"}]}},"0.0.4":{"name":"argsparser","description":"A tiny command line arguments parser","version":"0.0.4","author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git://github.com/kof/node-argsparser.git"},"keywords":["arguments","options","command line","parser"],"directories":{"lib":"./lib"},"main":"./lib/argsparser.js","engines":{"node":">= 0.2.0"},"scripts":{"install":"node ./test/test.js"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"_id":"argsparser@0.0.4","_engineSupported":true,"_npmVersion":"0.3.15","_nodeVersion":"v0.4.0","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"ad416bd94f18e661fc81d6e292c58e6235a75abe","tarball":"https://registry.npmjs.org/argsparser/-/argsparser-0.0.4.tgz","bin":{"0.4-sunos-5.11":{"shasum":"80a61bcb3ef9ff8c855055d23e37d5b3dc2429f0","tarball":"http://registry.npmjs.org/argsparser/-/argsparser-0.0.4-0.4-sunos-5.11.tgz"}},"integrity":"sha512-LXOthLVEV9Av5GBvGHLgT9dNxafNHQtySX9H4y8KEC8+KSiCquOZppll9yneJOPFFSQsDw/wZDAHMcrooQoCBQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEQQZ4Fs6sdxrrzTWRb84MT0Riej0PXPQLOdLGQrC94NAiBy2TCuoMkkYgEg25bmkXLNGzA/NcaUaXpCIFKBEyYNVA=="}]}},"0.0.5":{"name":"argsparser","description":"A tiny command line arguments parser","version":"0.0.5","author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git://github.com/kof/node-argsparser.git"},"keywords":["arguments","options","command line","parser"],"engines":{"node":">= 0.2.0"},"scripts":{"test":"node ./test/test.js"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"_id":"argsparser@0.0.5","_engineSupported":true,"_npmVersion":"0.3.17","_nodeVersion":"v0.4.3","directories":{"lib":"./lib"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"d7773856c6faebe2efc138ba5f11580bc79aa8eb","tarball":"https://registry.npmjs.org/argsparser/-/argsparser-0.0.5.tgz","integrity":"sha512-brmuO4nywVlUEHWYiaCLxh5nnEi18Y2DJDXqn0lqs5bsWNlKmuvTnsbSQxcCR9flesu8FvxGMy3MRwNr66bWgw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqfWXsk3lHQoXJy7Zem6CRJbin6aFeV8LHWE6XpaMb8gIhAKSZcry5jpYJZKY2+3xfQCS+Fnl9tI7OKEJiTFlTBuLI"}]}},"0.0.6":{"name":"argsparser","description":"A tiny command line arguments parser","version":"0.0.6","author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git://github.com/kof/node-argsparser.git"},"keywords":["arguments","options","command line","parser"],"engines":{"node":">= 0.2.0"},"scripts":{"test":"node ./test/test.js"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"_npmJsonOpts":{"file":"/Users/kof/.npm/argsparser/0.0.6/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"argsparser@0.0.6","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.17","_nodeVersion":"v0.5.0","_defaultsLoaded":true,"dist":{"shasum":"ff45eb5b92c004225cf146a51d339dccb265be63","tarball":"https://registry.npmjs.org/argsparser/-/argsparser-0.0.6.tgz","integrity":"sha512-0EWosf9XMt5o76dBb7DPtcd+qn5ZC7+q0gaiziFyp4oyxpEOcCAZGDDqP312wISXcjkfj8+8btRMN26zMCVCSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRdlkvIOgS3yM/RaBYoUg9xGhPYU0f4Ugv0w7duOf3sgIhAIlQUg2EVp89MTzfGCZONd0EkcNfulLdTfdttHY0BDTr"}]},"maintainers":[{"name":"kof","email":"oleg008@gmail.com"}]},"0.0.7":{"name":"argsparser","description":"A tiny command line arguments parser","version":"0.0.7","author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/kof/node-argsparser.git"},"keywords":["arguments","options","command line","parser"],"engines":{"node":">= 0.2.0"},"scripts":{"test":"node ./test/test.js"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"e4966bc029493cc5b537ff2ca4a74ff0c6ae2233","bugs":{"url":"https://github.com/kof/node-argsparser/issues"},"homepage":"https://github.com/kof/node-argsparser#readme","_id":"argsparser@0.0.7","_shasum":"41c85e0c3de757b350f12e6ed0e490b1e82dbe06","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"maintainers":[{"name":"kof","email":"oleg008@gmail.com"}],"dist":{"shasum":"41c85e0c3de757b350f12e6ed0e490b1e82dbe06","tarball":"https://registry.npmjs.org/argsparser/-/argsparser-0.0.7.tgz","integrity":"sha512-jWiKKi8EwhvFhtyY+2x5Y4zOa2Wp93mhQ++0MxcLF/SJNlmf5kro81o/3juM9iQOa6pE/poHAGKl5vP7Cbn8Dg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFZ2fVgG+sk3Wx8XNL2h4Lb8y8OEBZciNKrxG/FCX2f5AiAH0z29VQckzWqvrit0bqQcc6v81NuGesz7GGMp7bfdlA=="}]}}},"maintainers":[{"name":"kof","email":"oleg008@gmail.com"}],"time":{"modified":"2022-06-13T03:26:29.003Z","created":"2010-12-30T11:45:04.615Z","0.0.3":"2010-12-30T11:45:05.073Z","0.0.4":"2011-03-09T14:18:12.400Z","0.0.5":"2011-04-15T21:35:37.977Z","0.0.6":"2011-06-15T12:25:00.402Z","0.0.7":"2015-11-13T08:43:38.769Z"},"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/kof/node-argsparser.git"},"readme":"## Yet another tiny arguments parser for node\n\n## Features\n * extremely tiny\n * instead to parse all possible spellings, it uses just some simple rules\n\n## How this parser works\nThe target is to get a key-value object from an array. A key can be the first element or element prefixed by \"-\" and \"--\" (switch). \nSo the parser loops through the array and looks for keys. After he could detect an a key all next elements will be added as a value of this key until he find another key.\nIf there is no value, then the key is true (boolean). If there are a lot of values, then the key is an array.\n\n## Examples\n\nnode script.js -> {\"node\": \"script.js\"}\n\nnode script.js -o -> {\"node\": \"script.js\", \"-o\": true}\n\nnode script.js -o test -> {\"node\": \"script.js\", \"-o\": \"test\"}\n\nnode script.js -a testa --b testb -> {node: \"script.js\", \"-a\": \"testa\", \"--b\": \"testb\"}\n \nnode script.js -paths /test.js /test1.js -> {node: \"script.js\", \"-paths\": [\"/test.js\", \"/test1.js\"]}\n\n## Usage\n\n    // per default it parses process.argv\n    var args = require( \"argsparser\" ).parse(); // {\"node\": \"/path/to/your/script.js\"}\n    \n    // optional you can pass your own arguments array\n    var args = require( \"argsparser\" ).parse([\"-a\", \"test\"]); // {\"-a\": \"test\"}\n\n    \n## Installation\n    npm install argsparser    ","homepage":"https://github.com/kof/node-argsparser#readme","keywords":["arguments","options","command line","parser"],"bugs":{"url":"https://github.com/kof/node-argsparser/issues"},"readmeFilename":"readme.md"}