{"name":"cli-usage","version":"0.1.1","description":"Easily show CLI usage from a markdown source file","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["CLI-Usage","Markdown","Usage","CLI","Print-Usage"],"author":{"name":"Mikael Brevik"},"license":"MIT","dependencies":{"marked":"^0.3.2","minimist":"^0.2.0","marked-terminal":"^0.1.0"},"_id":"cli-usage@0.1.1","dist":{"shasum":"4fa60aa9cdf005baf6b2889f6748b34159f25b8c","tarball":"http://registry-npm.ywwl.com/cli-usage/download/cli-usage-0.1.1.tgz","integrity":"sha512-sXte0fPVWV/xVMcoVKGrGGbQIVw51/XUiCkUQDwcbq6SdIybNfOeh5JcBJDwFE2CtmX6CYdUnARVhbSVRrmIMg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAzDeEv/7cmHWm/GE+7iREQQaEmJj4RYQT7c8OUWLzd/AiEAmahUXuHwfR9NmDfzFGjD/I0iqJvvTXhieIt1sEwbFvI="}],"size":2375,"noattachment":false,"key":"/cli-usage/-/cli-usage-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"mikaelb","email":"mikaelbre@gmail.com"},"maintainers":[{"name":"mikaelb","email":"mikaelbre@gmail.com"}],"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":1406586716514,"_cnpm_publish_time":1406586716514,"dist-tags":{"latest":"0.1.10"}}