REJOINDER
rejoinder
/rɪˈdʒɔɪndə/
noun
a reply or response to a question or remark, esp a quick witty one; retort
Rejoinder is that generator of smart, pretty, highly organized output your parents warned you about.
TODO: SPIN OFF EXECUTABLE POWERS INTO A SLASH-FILE VERSION i.e. rejoinder/execute
Super awesome when paired with inquirer and/or commander!
Installation
npm install rejoinder
If you want support from shelljs (required to use Execute
), install that too:
npm install shelljs
Usage and Examples
const rejoinder = ;let echo = rejoinderecho;let execute = rejoinderexecute; echo; // immediate outputechowithPostfix; // colorful output prefixed with the string "WARN " echobeVerbose = true; // beVerbose fka "debugMode"echo;echo;echobeVerbose = false; // it is false by defaultecho;echo; echo; // also returns false if somethingistrue is false echo; // prints "all my methods are also variadic!"echo; // prints "even this one :)" echoprefix = '>>'; // this will be printed directly before the message every timeecho; // prints ">> changed the game!" echoprefix = 'Big:Boy:Time:';echomessageSeparator = '||'; // this is the thing between the prefix and the messageecho;// the above prints `Big:Boy:Time:||"the" "time" "for" "fun and games is" "over!"` echo; // prints "Big:Boy:Time::postfix||this is pretty cool"echopostfixSeparator = '<>'; // this is the thing between the prefix and the postfix. It goes `prefix + postfixsep + postfix + msgsep + message`echo; // prints "Big:Boy:Time:<>postfix||this too"echowithPostfix; // prints colorful output that says "Big:Boy:Time:<>OK||GOT IT!" // ONLY the echo statements that appear inside of this function will have the aforesaid prefixecho; echobeVerbose = true; // prints the command and the result of executing it thanks to echo.beVerbose! See API.md for more information on how this worksexecute;
Documentation
See API.md
Tests
npm install
npm test
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style.
Add unit tests for any new or changed functionality. Lint and test your code.
Release History
- 0.3.x Several bugfixes
- 0.2.0 Initial working release; unit tested; semver versioning semantics are obeyed from this point forward
- 0.1.x Rapid iteration