{"name":"cli-usage","version":"0.1.9","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.6.2","marked-terminal":"^3.2.0"},"devDependencies":{"mocha":"^4.1.0"},"gitHead":"860390dcacc543949f940a427921ecc279ee091c","_id":"cli-usage@0.1.9","_nodeVersion":"11.10.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-MIJJnLu89KTRoGN1ix9dwvKYUPUP7tUL+YGKNH/7mFmy8n3aWNznQKK8FU7PsFVQxePW5rxBp0lupzeSjRiXTA==","shasum":"a81d0f78af3999be3f51cb5cb6e8b2d3c02f4a44","tarball":"http://registry-npm.ywwl.com/cli-usage/download/cli-usage-0.1.9.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\nwsFcBAEBCAAQBQJctGWuCRA9TVsSAnZWagAAHLcQAKEgsfG9IWu/AbTQw62F\nSUUG9pBOThgy/imNa/gZKVPbelnD2wUlj8Ypif0o/R/UCggj9UHcyoca6H/h\nzNnnjzhqkDCmCIFpJvpubTJsWiEckl8Q+lzn4+RTjW+Xuu1YxWebyUqC29es\nhpu3uhJePq+2RFjuKwYhkreFTfjl6+AZ2L+vFfdhO+uBc4hyxGhtGRhUdZ/X\n5FmHECVC954ARoOno9H9qkK2NJjLcVai2JnJgYhV2HnD+W2XLqsN0C44fGcP\nrxXKP7RdS1/+NbBD8/P2CNqRzNiaowsZaY54vq8yvzB8U4FeGtCeu1NL1idj\n89SF/MQRpH5h6bZowL64ZIxNFEgjMNHl+10KfnZ2p0+wJFJ/J+Q1RASEYxR3\nQDozOegoD1+gEg7yqjXzrZfksjq2b9tXGObYaNeMNUNhjxyzKYqxAR0dUVGS\n2Gujz19jHN/XbOiwKG0g61Jxs7ek5WkVSxsWKslJSIfM+d5Bol0zuzYQniiG\nl7W2xKGrsExSzEhElzpGbWshXxCia4SQDK+vVJegWbx4jBVOlLTnRbDKc9IP\niXglPEFmW9lquU+YANnhGRfonGVrwk64Z101GoHd2A5lU0Ka9VqJa7oi9BzI\nJ28s7N6KgUgLD408jnXA+s2dPV26yzR5628D4IcIVFgYyWRn6Yo3TUkpRTSi\n6P41\r\n=ZlFf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCz+zT3k1upqkirqxsiSe1XNB9p8RiDlY9srkUe1rCJ5wIgHzj3Kf03javhxNl/jZEKUfrp9pToTUfwT4CthaN57OE="}],"size":1900,"noattachment":false,"key":"/cli-usage/-/cli-usage-0.1.9.tgz"},"maintainers":[{"name":"mikaelb","email":"mikaelbre@gmail.com"}],"_npmUser":{"name":"mikaelb","email":"mikaelbre@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli-usage_0.1.9_1555326382162_0.3633241630034776"},"_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":1555326382324,"_cnpm_publish_time":1555326382324,"dist-tags":{"latest":"0.1.10"}}