{"_id":"nopter","_rev":"29-7234ff385e0c70c7abbf8308fae9edf1","name":"nopter","description":"A powerful, yet simple command line (CLI) option parser.","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"nopter","description":"A simple nopt wrapper for CLI apps.","version":"0.1.0","homepage":"https://github.com/stevenvachon/nopter","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/nopter.git"},"bugs":{"url":"https://github.com/stevenvachon/nopter/issues"},"dependencies":{"cli-table":"~0.3","colors":"~0.6","nopt":"~2.2"},"devDependencies":{"chai":"~1.9","mocha":"~1.18","strip-ansi":"~0.2"},"engines":{"node":">= 0.10.0"},"scripts":{"test":"node node_modules/mocha/bin/mocha test/ --bail --reporter spec --check-leaks"},"keywords":["nopt","cli"],"_id":"nopter@0.1.0","_shasum":"49f22e324973ef66921d30a93216c67629cd2c07","_from":"./","_npmVersion":"1.4.9","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"dist":{"shasum":"49f22e324973ef66921d30a93216c67629cd2c07","tarball":"https://registry.npmjs.org/nopter/-/nopter-0.1.0.tgz","integrity":"sha512-7HdzZnXGDnNTQjOziNY/lEwRZkiFP74gt7c+OqrhuW5vZfUD71uQkA6C8vNR3tdcpGChatYVIDO1FDU9tF2n4A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZe5lptF4pi70ieQWEnHzgbTfy/Vvtc6I+GkA6Mj0IewIhAN+bPjVS2uJLkyZPHO9ZmWug8DwOjOtyvCPAkJrS9292"}]},"deprecated":"try optionator"},"0.1.1":{"name":"nopter","description":"A simple nopt wrapper for CLI apps.","version":"0.1.1","homepage":"https://github.com/stevenvachon/nopter","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/nopter.git"},"bugs":{"url":"https://github.com/stevenvachon/nopter/issues"},"dependencies":{"cli-table":"~0.3","colors":"~0.6","nopt":"~2.2"},"devDependencies":{"chai":"~1.9","mocha":"~1.18","strip-ansi":"~0.2"},"engines":{"node":">= 0.10.0"},"scripts":{"test":"node node_modules/mocha/bin/mocha test/ --bail --reporter spec --check-leaks"},"keywords":["nopt","cli"],"_id":"nopter@0.1.1","_shasum":"8750c5a61bc8d4a019efeb55a0dc17fa91e82006","_resolved":"git://github.com/stevenvachon/nopter.git#831bf8ee914eab61d7c1d96d8e826ef62606f4b7","_npmVersion":"1.4.9","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"dist":{"shasum":"8750c5a61bc8d4a019efeb55a0dc17fa91e82006","tarball":"https://registry.npmjs.org/nopter/-/nopter-0.1.1.tgz","integrity":"sha512-/5JNbt1Kv8zEkfqmIXlceMgzxTE+SQqVQWX5pos1CPguVh88hy1B01N76sPVzZ7S32FLEMEuR7DWL/yl1sdu1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBkhS3JNHbM+jbkbAb/R9oSPDXs3mcR5Beh2UvjilPpJAiBvUnp1h+RRyC5ubKr7NI+FBkLKclAHdj9cezqYRqWJ7Q=="}]},"deprecated":"try optionator"},"0.1.2":{"name":"nopter","description":"A simple nopt wrapper for CLI apps.","version":"0.1.2","homepage":"https://github.com/stevenvachon/nopter","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/nopter.git"},"bugs":{"url":"https://github.com/stevenvachon/nopter/issues"},"dependencies":{"cli-table":"~0.3","colors":"~0.6","nopt":"~3.0"},"devDependencies":{"chai":"~1.9","mocha":"~1.18","strip-ansi":"~0.2"},"engines":{"node":">= 0.10.0"},"scripts":{"test":"node node_modules/mocha/bin/mocha test/ --bail --reporter spec --check-leaks"},"keywords":["nopt","cli"],"_id":"nopter@0.1.2","_shasum":"3493ce8ac9c09ec14460c482e2e424d65c182461","_resolved":"git://github.com/stevenvachon/nopter.git#75b74fda17fe05762e9a1746dbbb637f3530ed76","_npmVersion":"1.4.9","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"dist":{"shasum":"3493ce8ac9c09ec14460c482e2e424d65c182461","tarball":"https://registry.npmjs.org/nopter/-/nopter-0.1.2.tgz","integrity":"sha512-yHDNwn8uq8csdsSG60VAgw4RG/iYB5eaXD1AI7U5e6HKfjzS12rs4TCKDNs3I3mqZx7OAoyH3o8fPxb56YZzmg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFEH/wbjrKm+Rlg7q0RGvzH40Vb87Hqo7tHMrbTSpBZDAiEAzHlappw7TwfULNJUETPw/8KBmmHnbgv3n967YPmBY84="}]},"deprecated":"try optionator"},"0.1.3":{"name":"nopter","description":"A simple nopt wrapper for CLI apps.","version":"0.1.3","homepage":"https://github.com/stevenvachon/nopter","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/nopter.git"},"bugs":{"url":"https://github.com/stevenvachon/nopter/issues"},"dependencies":{"cli-table":"~0.3","colors":"~0.6","nopt":"~3.0"},"devDependencies":{"chai":"~1.9","mocha":"~1.18","strip-ansi":"~0.2"},"engines":{"node":">= 0.10.0"},"scripts":{"test":"node node_modules/mocha/bin/mocha test/ --bail --reporter spec --check-leaks"},"keywords":["nopt","cli"],"_id":"nopter@0.1.3","_shasum":"fdba450568ee133418606eb0ba07f1164f6617a4","_resolved":"git://github.com/stevenvachon/nopter.git#92598cf90bc3697b84ec3b47772ee2fe30c9d8b0","_npmVersion":"1.4.9","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"dist":{"shasum":"fdba450568ee133418606eb0ba07f1164f6617a4","tarball":"https://registry.npmjs.org/nopter/-/nopter-0.1.3.tgz","integrity":"sha512-Z1I7YPsHQebS8DMRYgReflgdm87S+Xe6NcCDhxuNpP5049ONYI0yV7xyxyM5nMa05tXnoOelOfFkSosS3SgeMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYxZYwYGJmcQx1s68tZXgv23L3myrE+kJIYJSOeywWVAIhAOEN4LkeNHfIiENfVefIuaZsgqsFomkHR8yeYvHmO4ot"}]},"deprecated":"try optionator"},"0.1.4":{"name":"nopter","description":"A simple nopt wrapper for CLI apps.","version":"0.1.4","homepage":"https://github.com/stevenvachon/nopter","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/nopter.git"},"bugs":{"url":"https://github.com/stevenvachon/nopter/issues"},"dependencies":{"cli-table":"~0.3","colors":"~0.6","nopt":"^3.0"},"devDependencies":{"chai":"^1.9","mocha":"^1.21","strip-ansi":"^1.0"},"engines":{"node":">= 0.10.0"},"scripts":{"test":"node node_modules/mocha/bin/mocha test/ --bail --reporter spec --check-leaks"},"keywords":["nopt","cli"],"_id":"nopter@0.1.4","_shasum":"07142739bca1fc84e9b0f3523afd02ee39dafdf1","_resolved":"git://github.com/stevenvachon/nopter.git#44adeb9b379c14cd4937d0fb102e5e8c3efc1d4d","_npmVersion":"1.4.9","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"dist":{"shasum":"07142739bca1fc84e9b0f3523afd02ee39dafdf1","tarball":"https://registry.npmjs.org/nopter/-/nopter-0.1.4.tgz","integrity":"sha512-B8pjrqx3u/ufZXcb80XHoRD6BGjHtpMsktlAHkgrroC1QboQQPjwrnyDDadVwBaZtXOe/Y3LTOZJPcvjUnlxWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA6GAQ03PD9vWVJOi+STB4Wq6Fm4wjFOX5DuDkoXzJ8oAiEA+UiYtbjumWeyN/eEGkEcZXc2av6Zy8qMHJGwWuk88LM="}]},"deprecated":"try optionator"},"0.1.5":{"name":"nopter","description":"A simple nopt wrapper for CLI apps.","version":"0.1.5","homepage":"https://github.com/stevenvachon/nopter","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/nopter.git"},"bugs":{"url":"https://github.com/stevenvachon/nopter/issues"},"dependencies":{"cli-table":"~0.3","colors":"~0.6","nopt":"^3.0"},"devDependencies":{"chai":"^1.9","mocha":"^1.21","strip-ansi":"^1.0"},"engines":{"node":">= 0.10.0"},"scripts":{"test":"node node_modules/mocha/bin/mocha test/ --bail --reporter spec --check-leaks"},"keywords":["nopt","cli"],"_id":"nopter@0.1.5","_shasum":"217c34b4f5deb98f58370726bb4660cd6456e01b","_resolved":"git://github.com/stevenvachon/nopter.git#9f978ac3643ac99c6d8df59de6f6e29978e44fd2","_npmVersion":"1.4.9","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"dist":{"shasum":"217c34b4f5deb98f58370726bb4660cd6456e01b","tarball":"https://registry.npmjs.org/nopter/-/nopter-0.1.5.tgz","integrity":"sha512-Ljb9M0u12tAGofPpcJmH7SaPvqiWimdfvgRjI/MOXNEyszTs5s9ZkMYDOzSRjR9rpcmKoYtGFSNElU/o70R0YA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAcjm5sLoKqw27GEU6xuC5dEYONZnzQPvepVE6H8MW7vAiAOzgX2L9fUdjEq+JmM9FE3lbzJyATN3/86jHSkx8yoog=="}]},"deprecated":"try optionator"},"0.1.6":{"name":"nopter","description":"A simple nopt wrapper for CLI apps.","version":"0.1.6","homepage":"https://github.com/stevenvachon/nopter","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/nopter.git"},"bugs":{"url":"https://github.com/stevenvachon/nopter/issues"},"dependencies":{"cli-table":"~0.3","colors":"~0.6","nopt":"^3.0"},"devDependencies":{"chai":"^1.9","mocha":"^1.21","strip-ansi":"^1.0"},"engines":{"node":">= 0.10"},"scripts":{"test":"mocha test/ --bail --reporter spec --check-leaks"},"files":["lib"],"keywords":["nopt","cli"],"_id":"nopter@0.1.6","_shasum":"bf0a0c63b415a99995ee20fa734092ba4ff9b032","_resolved":"git://github.com/stevenvachon/nopter.git#beb656ad5e1f94f61c5d3844ed2c05828f42d51b","_npmVersion":"1.4.9","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"dist":{"shasum":"bf0a0c63b415a99995ee20fa734092ba4ff9b032","tarball":"https://registry.npmjs.org/nopter/-/nopter-0.1.6.tgz","integrity":"sha512-D8hDroM6LBgmZYVWfV2QAIG4RuyknXfYwnN15QsiXuOc2Nhjt1oEpTFiOz5qmKmGmaewZX/C9QN6Xq0cf7zc1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB3Yr8RNixJULHeeKOXddJNfhkWpx08g6fvqacB9KhEqAiAmcwV2LTIZHgchtIwnEjgk1PJs3v7YQxbNNO819Sl/TQ=="}]},"deprecated":"try optionator"},"0.1.7":{"name":"nopter","description":"A simple nopt wrapper for CLI apps.","version":"0.1.7","homepage":"https://github.com/stevenvachon/nopter","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/nopter.git"},"bugs":{"url":"https://github.com/stevenvachon/nopter/issues"},"dependencies":{"cli-table":"~0.3","colors":"~0.6","nopt":"^3.0","object.assign":"^1.0"},"devDependencies":{"chai":"^1.9","mocha":"^1.21","strip-ansi":"^1.0"},"engines":{"node":">= 0.10"},"scripts":{"test":"mocha test/ --bail --reporter spec --check-leaks"},"files":["lib"],"keywords":["nopt","cli"],"_id":"nopter@0.1.7","_shasum":"ad38b54fc8ddaf020750951fe4cdfb79004ccb29","_resolved":"git://github.com/stevenvachon/nopter.git#b761d63a17acc81bf7970eb3d4ca4cc530c46d40","_npmVersion":"1.4.9","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"dist":{"shasum":"ad38b54fc8ddaf020750951fe4cdfb79004ccb29","tarball":"https://registry.npmjs.org/nopter/-/nopter-0.1.7.tgz","integrity":"sha512-seUJF+Y358iHnoCfLZymSWETUnIGZJ525LCTQaV/+lplZEzsgN3wf+/VBlXJ/4UR1Ryk3XILWNDSlHg/Dp6v9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFhldVv/dyP/imiQqOT8xfVO0CnlEdBfn73HEdR6EepgIhAIYUdv8+LiUpjUNBMIBp3GKa7S+2x5UaYjM7OSxTo/AS"}]},"deprecated":"try optionator"},"0.1.8":{"name":"nopter","description":"A simple nopt wrapper for CLI apps.","version":"0.1.8","homepage":"https://github.com/stevenvachon/nopter","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/nopter.git"},"bugs":{"url":"https://github.com/stevenvachon/nopter/issues"},"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"dependencies":{"cli-table":"~0.3","colors":"^1.0","nopt":"^3.0","object.assign":"^1.0"},"devDependencies":{"chai":"^1.9","mocha":"^1.21","strip-ansi":"^1.0"},"engines":{"node":">= 0.10"},"scripts":{"test":"mocha test/ --bail --reporter spec --check-leaks"},"files":["lib"],"keywords":["nopt","cli"],"_id":"nopter@0.1.8","_shasum":"5e000f1aa88b688c2d71b4716e09e69b58eddbd4","_resolved":"git://github.com/stevenvachon/nopter.git#86dc0d7aa5f3709e35b2142e78a1dde6aafc4ccb","_npmVersion":"1.4.25","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"dist":{"shasum":"5e000f1aa88b688c2d71b4716e09e69b58eddbd4","tarball":"https://registry.npmjs.org/nopter/-/nopter-0.1.8.tgz","integrity":"sha512-O9vgtu4kpHrjygeE0VU0Y8bx+gIyV7MxV1cUR3ZEUNTBX6BKPXl0uTXjKBTXQmMFoC/tHy5nNPykvLX6R5eanQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD20vCe/pbb2qnVcSCNFTI36x2qhKXkShsnoa2rpGm/CgIgTxV74ib9YEHLfrtKfTFWSIKXcCUP6E1BXPoraLSZ29Y="}]},"deprecated":"try optionator"},"0.1.9":{"name":"nopter","description":"A simple nopt wrapper for CLI apps.","version":"0.1.9","homepage":"https://github.com/stevenvachon/nopter","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/nopter.git"},"bugs":{"url":"https://github.com/stevenvachon/nopter/issues"},"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"dependencies":{"cli-table":"~0.3","colors":"^1.0","nopt":"^3.0","object.assign":"^1.0"},"devDependencies":{"chai":"^1.9","mocha":"^2.0"},"engines":{"node":">= 0.10"},"scripts":{"test":"mocha test/ --bail --reporter spec --check-leaks"},"files":["lib"],"keywords":["nopt","cli"],"_id":"nopter@0.1.9","_shasum":"fc8b0c26483f782984b2164dde5beb565cfe32ef","_resolved":"git://github.com/stevenvachon/nopter.git#d61874c6d861d2676f0b85c9644f01e72ebb04a0","_npmVersion":"2.0.0","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"dist":{"shasum":"fc8b0c26483f782984b2164dde5beb565cfe32ef","tarball":"https://registry.npmjs.org/nopter/-/nopter-0.1.9.tgz","integrity":"sha512-nJOBdvvB/fiAT8DPQZwVW4v08sHYOVHyiHlV7AAVW0FX2yK7Zb/vY5X2NeP4PtkCfx96AQgO2vc/KS/G2EFCTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGUnPMtKYASVtuWqjlQ6EagnWqYOxmCLgAmk3z239ulmAiEAlpRMD1vO5YZtXegpFA5eni+dvGnOYSJbeWDb5vbCzFo="}]},"deprecated":"try optionator"},"0.2.0":{"name":"nopter","description":"A powerful, yet simple command line (CLI) option parser.","version":"0.2.0","homepage":"https://github.com/stevenvachon/nopter","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/nopter.git"},"bugs":{"url":"https://github.com/stevenvachon/nopter/issues"},"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"dependencies":{"caller-path":"~0.1.0","cli-table":"~0.3.1","colors":"^1.0.3","eol":"~0.2.0","nopt":"^3.0.1","object.assign":"^1.0.1","splitargs":"~0.0.3"},"devDependencies":{"chai":"^1.10.0","mocha":"^2.0.1"},"engines":{"node":">= 0.10"},"scripts":{"test":"mocha test/ --reporter spec --check-leaks --bail --no-exit"},"files":["lib"],"keywords":["args","argv","command","cli","nopt","options","parser","terminal"],"_id":"nopter@0.2.0","_shasum":"fc2339cab2aea094167004900a49317e293c9f5b","_resolved":"git://github.com/stevenvachon/nopter.git#bd5216600acb451af9aef8618a2631deefe29261","_npmVersion":"2.0.0","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"dist":{"shasum":"fc2339cab2aea094167004900a49317e293c9f5b","tarball":"https://registry.npmjs.org/nopter/-/nopter-0.2.0.tgz","integrity":"sha512-3oI3vdeb0UBScFpeEGXJ4uB9IqHbCijBGuTYpR8xaRs72ILBMiXLoy5PFrenuoNltUK8N+7411jw4a7tgq8gBQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICQ95ibZlQHbO50subt3juNl+ZZbuZ8j54ttvLI98lMLAiAhMJdUtoJcu1WKrinSpfJajKaNlBGrpapL2u7OQ6WKFg=="}]},"deprecated":"try optionator"},"0.2.1":{"name":"nopter","description":"A powerful, yet simple command line (CLI) option parser.","version":"0.2.1","homepage":"https://github.com/stevenvachon/nopter","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/nopter.git"},"bugs":{"url":"https://github.com/stevenvachon/nopter/issues"},"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"dependencies":{"caller-path":"~0.1.0","cli-table":"~0.3.1","colors":"^1.0.3","eol":"~0.2.0","nopt":"^3.0.1","object.assign":"^1.0.1","splitargs":"~0.0.3"},"devDependencies":{"chai":"^1.10.0","mocha":"^2.0.1"},"engines":{"node":">= 0.10"},"scripts":{"test":"mocha test/ --reporter spec --check-leaks --bail --no-exit"},"files":["lib"],"keywords":["args","argv","command","cli","nopt","options","parser","terminal"],"_id":"nopter@0.2.1","_shasum":"317a426dfca714557e600a2061a81c8a099d417a","_resolved":"git://github.com/stevenvachon/nopter.git#0f6e76b43fa3d5ba169ae6e0600aad9b008838cf","_npmVersion":"2.0.0","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"dist":{"shasum":"317a426dfca714557e600a2061a81c8a099d417a","tarball":"https://registry.npmjs.org/nopter/-/nopter-0.2.1.tgz","integrity":"sha512-3GtXhyM0pTBwo54RUKK1tZq7WmkSISpFMb+ZnhEnhJlGDOZT8psJ0bPEHzK6G/0WHms/rA8LIaP0F/i6kvgLCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBaBY9rsAFnv1Rbq84wLNmnwiGHGi8VZIX75dm6ru6/IAiAFf8A/n9xsFwa9wHHLDhZ+934lJuMKIi4PDxQDsplFmg=="}]},"deprecated":"try optionator"},"0.3.0":{"name":"nopter","description":"A powerful, yet simple command line (CLI) option parser.","version":"0.3.0","homepage":"https://github.com/stevenvachon/nopter","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"main":"lib","repository":{"type":"git","url":"git://github.com/stevenvachon/nopter.git"},"bugs":{"url":"https://github.com/stevenvachon/nopter/issues"},"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"dependencies":{"caller-path":"~0.1.0","camelcase":"^1.0.2","chalk":"~0.5.1","cli-table":"~0.3.1","eol":"~0.2.0","nopt":"^3.0.1","object-assign":"^2.0.0","splitargs":"~0.0.3"},"devDependencies":{"chai":"^1.10.0","mocha":"^2.0.1"},"engines":{"node":">= 0.10"},"scripts":{"test":"mocha test/ --reporter spec --check-leaks --bail --no-exit"},"files":["lib"],"keywords":["args","argv","command","cli","nopt","options","parser","terminal"],"gitHead":"bb0478aa64b6a1a156c28cfc51e94788617d6c0f","_id":"nopter@0.3.0","_shasum":"b9690e6fab8f256b37e4e7ccd23e2b38450cc71f","_from":"git://github.com/stevenvachon/nopter.git","_resolved":"git://github.com/stevenvachon/nopter.git#bb0478aa64b6a1a156c28cfc51e94788617d6c0f","_npmVersion":"2.11.1","_nodeVersion":"2.3.0","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"dist":{"shasum":"b9690e6fab8f256b37e4e7ccd23e2b38450cc71f","tarball":"https://registry.npmjs.org/nopter/-/nopter-0.3.0.tgz","integrity":"sha512-gSYCd2Gxge0Ovnszf8fI9WkN7/PiuTTIpbeo2VhyQ3+NwJ7z3x6jiOFAMuU65JZz+BK/I1uzae2neQVGFHMClQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCK1DP/ki0oVW33apseMxvrTIvBG2yRYhN5fZRz6Cs9ywIgG8GuXV7ib8MsWT5zBuZhc1chRbDxTdwbb8wyvNcslT4="}]},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"deprecated":"try optionator"}},"readme":"# nopter [![NPM Version](http://badge.fury.io/js/nopter.svg)](http://badge.fury.io/js/nopter) [![Build Status](https://secure.travis-ci.org/stevenvachon/nopter.svg)](http://travis-ci.org/stevenvachon/nopter) [![Build status](https://ci.appveyor.com/api/projects/status/hcw1rfsfb6ph2hhc)](https://ci.appveyor.com/project/stevenvachon/nopter) [![Dependency Status](https://david-dm.org/stevenvachon/nopter.svg)](https://david-dm.org/stevenvachon/nopter)\n\n> Easy command-line executable utilities for Node.js\n\n* Easy to write\n* Easy to test\n* Easy to maintain\n* Built on [nopt](https://npmjs.org/package/nopt) (npm's option parser)\n\n## Installation\n\n[Node.js](http://nodejs.org/) `~0.10` is required. Type this at the command line:\n```shell\nnpm install nopter --save-dev\n```\n\n## Option Parsing\nOptions are defined with [`config()`](#config) and serve as documentation for the help screen. The example below parses args and options from `process.argv`, leaving any remaining args not consumed by options as `input()._remain`.\n```js\n#!/usr/bin/env node\n\nvar nopter = new (require(\"nopter\"))();\n\nnopter.config({\n\ttitle: \"Image Compressor\",\n\tname: \"imgc\",\n\tversion: \"1.0.0\",\n\toptions: {\n\t\t\"compression\": {\n\t\t\tshort: \"c\",\n\t\t\tinfo: \"Compression level (0–100, default=80).\",\n\t\t\ttype: Number,\n\t\t\tdefault: 80\n\t\t},\n\t\t\"input\": {\n\t\t\tinfo: \"Input image.\",\n\t\t\ttype: require(\"path\")\n\t\t}\n\t}\n});\n\nvar args = nopter.input();\n\nif (args.compression) console.log(\"Compression :: \"+args.compression);\nif (args.input) console.log(\"Input File :: \"+args.input);\nif (args._remain.length) console.log(\"Unparsed args :: \"+args._remain);\n```\nShorthand flags may be passed as a single arg, for example `-abc` is equivalent to `-a -b -c`. Multi-word options such as \"--template-engine\" are camel-cased, becoming `input().templateEngine` etc. unless overridden with [`option.rename`](#configoptions).\n\nFor more ideas, check out the [test fixture](https://github.com/stevenvachon/nopter/tree/master/test/meta/cli.js).\n\n## Customizable Help Screen\n![Help screen](https://raw.github.com/stevenvachon/nopter/master/misc/help-screen.png)\nVia the [`help()`](#help) function.\n\n## Testing\n```js\n// app-cli.js ::::::::::::::::::::\n\nvar nopter = require(\"nopter\");\n\nfunction cli() {\n\tthis.nopter = new nopter();\n\tthis.nopter.config({/* See above example */});\n}\n\ncli.prototype.input = function(args, showArgs) {\n\tvar testing = !!args;\n\targs = this.nopter.input(args);\n\tif (testing && showArgs) return args;\n\tif (args.compression) console.log(\"Compression :: \"+args.compression);\n\tif (args.input) console.log(\"Input File :: \"+args.input);\n};\n\nmodule.exports = cli;\n\n// test.js ::::::::::::::::::::\n\nvar appCLI = require(\"./app-cli.js\");\nvar nopter = require(\"nopter\");\n\nnopter.util.forceColors();\n\nfunction test1() {\n\tvar cli = new appCLI();\n\tvar options = cli.input(\"--input file1 --compression 100\", true);\n\tassert.equal(options.input, \"path/to/file1\");\n\tassert.deepEqual(options, {compression:100, input:\"path/to/file1\"});\n}\n\nfunction test2() {\n\tvar cli = new appCLI();\n\tvar helpScreen = nopter.util.readHelpFile(\"./help.txt\");\n\thelpScreen = nopter.util.replaceColorVars(helpScreen);\n\tassert.equal( cli.input(\"--help\"), helpScreen );\n}\n```\nFor more ideas, check out the [test suite](https://github.com/stevenvachon/nopter/tree/master/test/cli.js).\n\n## Documentation\n\n### Methods\n\n#### config(object)\nGets or sets the [configuration](#Configuration).\n\n* `object` [optional].\n\n#### config.merge(object)\nMerges a new [configuration](#Configuration) with the existing one.\n\n* `object` [optional].\n\n#### error.fatal(error, additional, prefix)\nGets a (red) colored error message with a default `\"Error\"` prefix, but does not display/log it.\n\n* `error` can be an `Error` or `String`. If an `Error`, `error.name` will override the default prefix.\n* `additional` [optional] is a second, uncolored `String` sentence.\n* `prefix` [optional] overrides the default prefix.\n\n#### error.notice(error, additional, prefix)\nGets an uncolored error message with a default `\"Notice\"` prefix, but does not display/log it.\nSee [error.fatal](#errorfatal) for arguments info.\n\n#### error.warn(error, additional, prefix)\nGets a (yellow) colored error message with a default `\"Warning\"` prefix, but does not display/log it.\nSee [error.fatal](#errorfatal) for arguments info.\n\n#### help()\nGets the help screen, but does not display/log it.\n\n#### help.indent()\nGets the indent value for custom additions to the help screen.\n\n#### input(args, slice)\nGets user input parsed by nopt.\n```js\nnopter.input();\nnopter.input(process.argv, 2);\t// same as above\n\nnopter.input(\"app --option value\", 1);\nnopter.input([\"--option\",\"value\"]);\n```\n* `args` [optional] can be an `Array` or `String`. Default value is `process.argv`.\n* `slice` [optional] is a `Number`. [See nopt docs](https://www.npmjs.org/package/nopt#slicing). Unlike nopt, the default value of `2` only applies when `args===process.argv`; otherwise the default value is `0`.\n\n#### util.forceColors(value)\nForces colors in situations where they would normally be disabled such as a [`child_process`](http://nodejs.org/api/child_process.html) and some CI (Continuous Integration) systems. Due to the singleton design of the [color library](https://npmjs.org/package/chalk), this value **applies to all nopter instances**. Colors are not forced by default.\n* `value` [optional] is a `Boolean`. If `undefined`, it will default to `true`.\n\n#### util.readHelpFile(filepath)\nSynchronously reads the contents of a text file and converts to LF line endings for cross-platform support. Useful in testing the output of [`help()`](#help).\n```js\nconsole.log( nopter.util.readHelpFile(\"path/to/file.txt\") );\n//-> This is a text file.\n```\n* `filepath` is a required `String` path, relative to the current module (like [`require(\"./\")`](http://nodejs.org/api/globals.html#globals_require)).\n\n#### util.replaceColorVars(str)\nReplace easy-to-read variables in a `String` with their ANSI counterparts. Useful in testing the output of [`help()`](#help).\n```js\nvar str = \"{{green}}This is a {{bold}}colored{{/bold}} sentence.{{/green}}\";\nconsole.log( nopter.util.replaceColorVars(str) );\n//-> \\u001b[32mThis is a \\u001b[1mcolored\\u001b[22m sentence.\\u001b[39m\n```\n* `str` is a required `String`. Possible [color variables](https://www.npmjs.org/package/chalk).\n\n#### util.stripColors(str)\nRemove all ANSI characters. Useful in testing the output of [`help()`](#help).\n```js\nvar str = \"\\u001b[32mThis is a \\u001b[1mcolored\\u001b[22m sentence.\\u001b[39m\";\nconsole.log( nopter.util.stripColors(str) );\n//-> This is a colored sentence.\n```\n* `str` is a required `String`.\n\n### Configuration\n\n#### config.colors\nType: `Array`  \nDefault value: `[\"red\",\"green\",\"magenta\"]`  \nThe colors used in the help screen. Possible [color values](https://www.npmjs.org/package/chalk), `[null,…]` to disable a color and `null` to disable all colors.\n\n#### config.description\nType: `String`  \nDefault value: `\"\"`  \nThe app description.\n\n#### config.name\nType: `String`  \nDefault value: `\"noname\"`  \nThe app name used in the command line.\n\n#### config.title\nType: `String`  \nDefault value: `config.name.toUpperCase()`  \nThe app title, which is sometimes slightly different from `config.name`.\n\n#### config.version\nType: `String`  \nDefault value: `\"0.0.0\"`  \nThe app version.\n\n#### config.options\nType: `Object`  \nDefault value: `{}`  \nThe command line options.\n```js\noptions: {\n\t\"option-name\": {\n\t\tshort: \"o\",\n\t\tinfo: \"Description of option.\",\n\t\ttype: String\n\t}\n}\n```\n* `option.default` can be any value that is applied when no user value has been supplied.\n* `option.hidden` is a `Boolean` that hides the option from the help screen.\n* `option.info` is a descriptive `String` used in the help screen.\n* `option.rename` can be a `String` or `Boolean`. `false` will disable auto camel-casing. The default value is `true`.\n* `option.short` can be a `String` or `Array`.\n* `option.sort` is a `String` for categorizing the help screen.\n* `option.type` can be any of [these types](https://www.npmjs.org/package/nopt#types). The default type is `String`.\n\n#### config.aliases\nType: `Array`  \nDefault value: `[]`  \nArgument shortcuts to options.\n```js\naliases: [\"option1\",\"option2\"]\n```\nThis would allow something like `app foo bar` to be a CLI shortcut to `app --option1 foo --option2 bar`.\n\n## Roadmap Features\n* add ~~\"safe colors\",~~ cell-span and word-wrap features to cli-table\n* add \"before\" and \"after\" (table?) content for `help()`\n* add `option.alias` shortcut:\n```js\n\"option\": {\n\talias: \"--option1 value -xyz\"\n}\n```\n* add `config.commands` for nested options:\n```js\ncommands: {\n\t\"command\": {\n\t\tinfo: \"A command with specific options.\",\n\t\toptions: {\n\t\t\t\"input\": {\n\t\t\t\tinfo: \"The input file.\"\n\t\t\t\ttype: path\n\t\t\t},\n\t\t\t\"output\": {\n\t\t\t\tinfo: \"The output file.\"\n\t\t\t\ttype: path\n\t\t\t}\n\t\t},\n\t\taliases: [\"input\",\"output\"]\n\t}\n}\n\n//$ app command input.ext output.ext\n```\n* rename `options.aliases` to `options.arguments`?\n* add `util.shell()` for easier project testing?\n\n## Release History\n* 0.3.0\n  * added option auto camel-casing; `option.rename` supports booleans\n  * added `input()._remain`\n  * `option.info` no longer requires a value\n  * `option.type` defaults to type `String`\n* 0.2.1 fixed bug with `util.forceColors(false)`\n* 0.2.0\n  * added `input(args)`, `util.forceColors()`, `util.readHelpFile()`, `util.replaceColorVars()`, `util.stripColors()` for easier project testing\n  * added support for multiple instances (no singleton)\n* 0.1.9 avoided `String.prototype` colors\n* 0.1.8 simplified color test\n* 0.1.7 added `config.colors`, `config.merge()`, `help.indent()`\n* 0.1.6 tested on Windows\n* 0.1.5 added `option.sort`\n* 0.1.4 added `option.rename`\n* 0.1.3 added `option.hidden`\n* 0.1.2 added `option.default`, help screen cleanup\n* 0.1.1 added custom error messages\n* 0.1.0 initial release\n\n---\n\n[![Analytics](https://ga-beacon.appspot.com/UA-3614308-14/stevenvachon/nopter)](https://github.com/igrigorik/ga-beacon \"Google Analytics\")\n","maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"time":{"modified":"2022-06-22T05:10:36.612Z","created":"2014-06-05T01:07:38.306Z","0.1.0":"2014-06-05T01:07:38.306Z","0.1.1":"2014-06-05T15:57:51.654Z","0.1.2":"2014-06-09T17:37:22.535Z","0.1.3":"2014-06-12T02:04:31.733Z","0.1.4":"2014-08-03T21:48:10.318Z","0.1.5":"2014-08-12T02:22:19.712Z","0.1.6":"2014-08-15T14:51:38.571Z","0.1.7":"2014-08-18T21:42:58.863Z","0.1.8":"2014-10-02T15:08:11.897Z","0.1.9":"2014-10-22T16:18:35.583Z","0.2.0":"2014-11-25T01:22:31.276Z","0.2.1":"2014-11-25T19:39:53.277Z","0.3.0":"2015-06-27T21:40:19.526Z"},"homepage":"https://github.com/stevenvachon/nopter","keywords":["args","argv","command","cli","nopt","options","parser","terminal"],"repository":{"type":"git","url":"git://github.com/stevenvachon/nopter.git"},"author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"bugs":{"url":"https://github.com/stevenvachon/nopter/issues"},"readmeFilename":"README.md"}