javascript-commitment

A commit message generator for JavaScript

Usage no npm install needed!

<script type="module">
  import javascriptCommitment from 'https://cdn.skypack.dev/javascript-commitment';
</script>

README

javascript-commitment Build Status NPM version more fixes

Pay me Sponsor me

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).

GitHub Stats

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

API commitment.whatThe

Returns a JavaScript Object with a message String and a permalink String.

License

MIT License © Jan Raasch