{"name":"cli-usage","version":"0.1.7","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.12","marked-terminal":"^2.0.0"},"devDependencies":{"mocha":"^4.1.0"},"gitHead":"5493d603ee7d233d88606260c433eff8eb07a959","_id":"cli-usage@0.1.7","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"mikaelb","email":"mikaelbre@gmail.com"},"dist":{"integrity":"sha512-x/Q52iLSZsRrRb2ePmTsVYXrGcrPQ8G4yRAY7QpMlumxAfPVrnDOH2X6Z5s8qsAX7AA7YuIi8AXFrvH0wWEesA==","shasum":"eaf1c9d5b91e22482333072a12127f05cd99a3ba","tarball":"http://registry-npm.ywwl.com/cli-usage/download/cli-usage-0.1.7.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTQnOsQLnER9VBumxlEDb0J8JxdVPjrStDvXrxgMvU8AIgGREx+BbWGelLjwmNciAJB2aELN3VnsamRQcbDRXTLns="}],"size":1834,"noattachment":false,"key":"/cli-usage/-/cli-usage-0.1.7.tgz"},"maintainers":[{"name":"mikaelb","email":"mikaelbre@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli-usage-0.1.7.tgz_1515655099685_0.6258480006363243"},"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":1515655099831,"_cnpm_publish_time":1515655099831,"dist-tags":{"latest":"0.1.10"}}