An extensible command line parsing utility with middleware. Although fairly stable this module is not in production use as of 8/2018.
Key benefits of Kawkah are that it allows you to extend the validation pipeline and parsing via middleware. This allows you to easily create hooks for tracking usage or to add some sort of custom validation step.
Another key feature is the ability to build help groups for display. Kawkah is very customizable on this front. You can mix and match just about anything from examples to options to commands under a single heading with ease.
This is done by using namespaces. you might do something like:
kk.group'MyGroup', 'commandName.option', 'examples.name', 'Some static string of text';
We'll provide more on this soon...
$ npm install kawkah
Here are the basics. After instantiating define your args, flags and other settings then call
.listen() to have Kawkah listen for process.argv arguments.
;// OR;;kk.arg'order',.flag'toppings',.flag'deep-dish'.listen'order --toppings cheese --toppings ham --deep-dish';// RESULT}
Table of Contents
The documentation listed in this table of contents is here for convenience. If you find an error we suggest heading over to the Generated Docs. These tend to be pretty accurate given the cannot be generated without the project building. We try to keep examples up to date but there's only so much time. Feel free to create a PR if you see a mistake!
Documentation generated from source.