{"name":"cli-usage","version":"0.1.8","description":"Easily show CLI usage from a markdown source file","repository":{"type":"git","url":"git+https://github.com/mikaelbr/cli-usage.git"},"bugs":{"url":"https://github.com/mikaelbr/cli-usage/issues"},"homepage":"https://github.com/mikaelbr/cli-usage","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.5.0","marked-terminal":"^3.0.0"},"devDependencies":{"mocha":"^4.1.0"},"gitHead":"4443ba385799fc42e8d700f7628d1be897f2cb0a","_id":"cli-usage@0.1.8","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"mikaelb","email":"mikaelbre@gmail.com"},"dist":{"integrity":"sha512-EZJ+ty1TsqdnhZNt2QbI+ed3IUNHTH31blSOJLVph3oL4IExskPRyCDGJH7RuCBPy3QBmWgpbeUxXPhK0isXIw==","shasum":"16479361f3a895a81062d02d9634827c713aaaf8","tarball":"http://registry-npm.ywwl.com/cli-usage/download/cli-usage-0.1.8.tgz","fileCount":7,"unpackedSize":4095,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbk4VHCRA9TVsSAnZWagAADc8QAKFXAqN39yEwS/23q7DE\n7dnkPo0bioF9vCq3ydeoRnoGKjxHMqGgnvA+UOeUlLTH51SrOgeB5DskBLwG\npR76YOMuQ6OrOokzKVcH8q/VR7g5aT/eSJjO3B1mKDqYerLtfK8YBZJN7a6S\nvJt0yVQL6bfFaTiz24cE7QsPFqvsmxA8yCUd4rSZfZAVn+HscyDiykyqIxuQ\ngOktLo5e3WtzAq8DyrENMq8WYbXW2Rn+gZGp2rw02ylcdtVrsNCwvHpnVqNV\nQGJXLTVgoYH4hnp7kc4CAGNk+2aqKPnHWJEA7wD21Aq2R6kLY/XOyIFoM17G\nfqGBHCNl/VJT4N/tm2zo5XB6kA1kyw62ufc8a1dDH6iHHAik3PB0LlqLip1A\njvI97v/VcQMVMqMFhTeL6Usmvae25O/1+OcQxcrMyenT+jJYidZV1IiWT3jp\nHDP8lHCZ8jcIiDTlUr/3pGViNBJVrQbyVjjpxHyjVgEqKfHf1ydD1g4n8GT2\nyijPMtytoCobaOOyXcJY8P8aTlPd+tMb82QmfAOlcSP6rwRiFhKzgH9+FqtD\n/TuCdODaPUMbmmAqQBmlOuNM8JS1r6SRuv+hRGyBGASGZxsDBEo80X3UYnvN\nmQRN14ZdSboyoWDlufeck095Xnxdy0os9IWLIE8TbOu+zZPI3k4ZxEjXGae0\nJFET\r\n=Nylm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkcUevyYFN6A2bNOJQNvQwZD8y8KEcKKuOKeS4lKKlKQIhAKLsDC28TgKVjwJ6dFj6HoI8cJTKGlITUpphZIuxx5yH"}],"size":1900,"noattachment":false,"key":"/cli-usage/-/cli-usage-0.1.8.tgz"},"maintainers":[{"name":"mikaelb","email":"mikaelbre@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli-usage_0.1.8_1536394566942_0.8488283237324579"},"_hasShrinkwrap":false,"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":1536394567044,"_cnpm_publish_time":1536394567044,"dist-tags":{"latest":"0.1.10"}}