README
javascript-commitment
JavaScript adoption of the great Commitment project. For a quick laugh and a random commit message for the gentle programmer.
Visit http://whatthecommit.com/ for the web version.
Sponsor 💟
Support my work on this piece of open-source software via GitHub Sponsors (recurring) or PayPal (one-time).
Usage
Install via npm install javascript-commitment
. Then use the module in your code:
var commitment = require('javascript-commitment');
var commit = commitment.whatThe();
console.log('Random commit message', commit.message);
// (\ /)
// (O.o)
// (> <) Bunny approves these changes.
console.log('Link to the web version', commit.permalink);
// http://whatthecommit.com/0e0c1a4060a298158f3c4ef526f03f86
commitment.whatThe
API Returns a JavaScript Object with a message
String and a permalink
String.