{"name":"cli-usage","version":"0.1.10","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.7.0","marked-terminal":"^3.3.0"},"devDependencies":{"mocha":"^6.2.0"},"gitHead":"2974153db243d8d28ae2a872a9ee21f61586d0e0","_id":"cli-usage@0.1.10","_nodeVersion":"12.7.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-Q/s1S4Jz5LYI0LQ+XiFQCXkhMzn244ddyIffni8JIq/kL95DvQomVQ0cJC41c76hH9/FmZGY7rZB53y/bXHtRA==","shasum":"2c9d30a3824b48d161580a8f8d5dfe53d66b00d2","tarball":"http://registry-npm.ywwl.com/cli-usage/download/cli-usage-0.1.10.tgz","fileCount":7,"unpackedSize":4096,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiGP6CRA9TVsSAnZWagAAY/gP/isMBmmm9jjOoGJGC6M5\nPhWEs/qni2amN8oTyVcelZExs5p23t7Eq/uXsaLu0VH479F12bA22ghNOksg\n+NQVxv6QAtogUXpg7tYcSLCAZmUWSyGtAgv3xkufhnx3+1uMhru3TeWnc/z0\neam4p/CGXDYkNQ5wMIhaTc0MVNV+YaMfP7AtvRZnS89ajAThqKcOt5EDK6LO\n9zsevTUTGJN7i0Hc9dJnXNGjLULpqjnqxusMayErMWoVVZkY/lxl7raLfbyd\nAdEWvZs13DqxCwEpTj1i3Bc4bJNbJ2wNKPRUkpsAwbxXoVHPUv1LbRu38+cT\nNpTWDfyCpcfeHykWNIqRl+l9JYAns9hN65RYLkS7apMlLy1cSw49TN6tlJtp\nM0tJIYxmdOjRuBhD571ehn+w647QCU7faxfEmdws7agpdFN58jaKsHKLor8P\nNaq+E0lDeN9ZSuzLTKrHCqrt5ej7xV6vO8LMPPuD1VzialDozbetJ83wrvb4\n9mmi3gFP4nv0EJ2Ja+ppN4NdA9YDE96tw74Mw+ayOOKuF23QJ3nkgPOKGyy/\nll+ORzJfwKlhnAhbiFQv3CxA/s/2tu8RwHliktalHQTqlOCFlbp3NEz6gUNZ\nWi4MblphvH93PEM9oWIrJsJxqAu5cOHV5cTlylCGtFQv64j3JL+2AAL+Eq3L\n3xqf\r\n=z5pf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEuUuinzul36EtM6GlvkRl0ZlA6/yTadL7RBMb6jgsXQAiEAuK3HMOyV9FCNx7RsacLSpyupeWA9Xgv5syfjH24sO9M="}],"size":1902,"noattachment":false,"key":"/cli-usage/-/cli-usage-0.1.10.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.10_1569219578206_0.22475988704392624"},"_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":1569219578395,"_cnpm_publish_time":1569219578395,"dist-tags":{"latest":"0.1.10"}}