{"name":"cli-usage","version":"0.1.3","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.6","marked-terminal":"^1.6.2","mocha":"^3.0.2"},"devDependencies":{"mocha":"*"},"gitHead":"435af8783718f759684c6546c8256a235e2a4755","_id":"cli-usage@0.1.3","_shasum":"57fd40617dff91e75c7db32ec024a4b893e3d81f","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"mikaelb","email":"mikaelbre@gmail.com"},"dist":{"shasum":"57fd40617dff91e75c7db32ec024a4b893e3d81f","tarball":"http://registry-npm.ywwl.com/cli-usage/download/cli-usage-0.1.3.tgz","integrity":"sha512-XEkeTudfAY5qFgDRDp6hVAtNmSomnXclrjiIcMIPiEQeypJK1x9hLRoI43ieDEu+UmrS6G23opemVbHLV4coIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA0BiVEFqlxloSkS25hHwmo3L423C+gk9+7285ZgUNXqAiAuOSs4SzjtgJzkuZ9k9gYZ+cBuUfwBnYX7pHeJfiOvFA=="}],"size":1905,"noattachment":false,"key":"/cli-usage/-/cli-usage-0.1.3.tgz"},"maintainers":[{"name":"mikaelb","email":"mikaelbre@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cli-usage-0.1.3.tgz_1472846658078_0.8912871729116887"},"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":1472846659876,"_cnpm_publish_time":1472846659876,"dist-tags":{"latest":"0.1.10"}}