{"name":"cli-usage","version":"0.1.4","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"},"devDependencies":{"mocha":"^3.0.2"},"gitHead":"998afc5fe38325f26c043a93d554ec5cc5ef8a0b","_id":"cli-usage@0.1.4","_shasum":"7c01e0dc706c234b39c933838c8e20b2175776e2","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"mikaelb","email":"mikaelbre@gmail.com"},"dist":{"shasum":"7c01e0dc706c234b39c933838c8e20b2175776e2","tarball":"http://registry-npm.ywwl.com/cli-usage/download/cli-usage-0.1.4.tgz","integrity":"sha512-gyKTRkW43dgGuxHnlu+Doj1MRUJLp1jNqoI41Wf396jFsOKuZPxoo4aKyX8PRjWYNE3crJsqI4hArXRQNrPaXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE7FVm+NmgwE3/Q2PvWMEM9pV43BHB3WB2k3Ktv3OZcWAiEAiM4qsdhCQubZZGPJ82vUv5NdWGOZ0hlTPkiXZvQh9Ls="}],"size":1902,"noattachment":false,"key":"/cli-usage/-/cli-usage-0.1.4.tgz"},"maintainers":[{"name":"mikaelb","email":"mikaelbre@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cli-usage-0.1.4.tgz_1473324686930_0.2721161802764982"},"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":1473324688114,"_cnpm_publish_time":1473324688114,"dist-tags":{"latest":"0.1.10"}}