Diplomat
Diplomat makes command line interfaces for nodeJS easy. It's like Thor, but not a norse god and not written for ruby. And each parser is an object, instead of calling a class method directly, because I always thought that was weird.
How easy?
This easy:
let diplomat = { if flags'reverse' console else console } { return 'short': 'Echoes your message.' 'long': 'Echoes your message, with pizzazz. Is magical.' } { return 'reverse': 'type': 'boolean' 'default': 'false' } let echobot = echobot
Installation
npm install diplomat-cli
Development
This is all written in ES6 and transpiled using babel, so clone the repository and use babel-node
to test and node compile
to compile. Or babel -o diplomat-compiled.js diplomat.js
. Whatever floats your boat.
Disclaimer
This is version 0.1. I'm fairly sure I've ironed out the bugs, but there aren't very many types yet and there's still work to be done. Please mail any complaints, handwritten, to:
Malheur National Wildlife Refuge
36391 Sodhouse Ln
Princeton, OR 97721
Or just file a complain using the issue tracker, and I'll try my best to get back to you.