{"name":"cli-usage","version":"0.1.2","description":"Easily show CLI usage from a markdown source file","main":"index.js","scripts":{"test":"mocha tests.js -R spec"},"keywords":["CLI-Usage","Markdown","Usage","CLI","Print-Usage"],"author":{"name":"Mikael Brevik"},"license":"MIT","dependencies":{"marked":"^0.3.2","marked-terminal":"^1.6.1","minimist":"^0.2.0"},"devDependencies":{"mocha":"^1.21.3"},"gitHead":"240f39aa2d2db7abb8ab81029c1872eac428f443","_id":"cli-usage@0.1.2","_shasum":"497c20eaf12ec2779393a9bfac225c5f6cb9152d","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.5","_npmUser":{"name":"mikaelb","email":"mikaelbre@gmail.com"},"maintainers":[{"name":"mikaelb","email":"mikaelbre@gmail.com"}],"dist":{"shasum":"497c20eaf12ec2779393a9bfac225c5f6cb9152d","tarball":"http://registry-npm.ywwl.com/cli-usage/download/cli-usage-0.1.2.tgz","integrity":"sha512-/+sU8WoM64fO7ja+z9WK3pYU0SXI3X77EmNu74TlsJHLAr7KrcwRvAf4k2gSjtu3FuHlSHGKme//CkMvSrCGQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDG97Js0G5axbNAqiXODTkyPBp9tJ4CQ1S0viIAyCKTuwIhAORECoNHemiiq7jmGpvtNOOSvU6o+Sn9HFSe19To5Ihj"}],"size":2715,"noattachment":false,"key":"/cli-usage/-/cli-usage-0.1.2.tgz"},"directories":{},"readme":"# cli-usage\n\nEasily show the usage of your CLI tool from a Markdown string\nor file. You can just plug `cli-usage` in without thinking\nabout paramters, or you can handle that your self using the\n`.get` API end-point.\n\n## Install\n\n```\nnpm install cli-usage\n```\n\n## Usage\n\nMost basic usage, just plug in:\n\n```javascript\nvar usage = require('cli-usage');\nusage();\n//=> If help-flag is passed, print usage\n//=> and exit with code 0.\n```\n\nThis will listen for `-h`, `-help` or `--help` passed\ninto your CLI and try to locate a `usage.md` file from\nthe directory of the file. If `help` is passed and the\n`usage.md` file found, the usage will be printed and\nthe application will exit with code `0`.\n\nYou can also pass in a filename or a string.\n\n```javascript\nvar usage = require('cli-usage');\nusage('./some/path/to/usage.md');\n```\n\nor\n\n```javascript\nvar usage = require('cli-usage');\nusage('# Simple usage');\n```\n\n### Get compiled usage\nInstead of `cli-usage` doing all the work, you can\nalso just retrieve the compiled usage text and handle\nit your self.\n\n#### Example\n```javascript\nvar usage = require('cli-usage');\n\nconsole.log(usage.get('# some custom markdown from string'));\n\nconsole.log(usage.get('./usage.md'));\n```\n","publish_time":1440608750752,"_cnpm_publish_time":1440608750752,"dist-tags":{"latest":"0.1.10"}}