kail

Git hooks runner

Usage no npm install needed!

<script type="module">
  import kail from 'https://cdn.skypack.dev/kail';
</script>

README

NPM Version Build Status Coverage Status Dependency Status Licence

Git hooks runner

Installation

Using npm :

npm install kail

Documentation

Add hooks configuration to your package.json. Every documented hooks are supported.

{
  name: 'my-module',
  version: '0.0.1',
  // ...
  hooks: {
    'pre-commit': 'echo "pre-commit hook called"',
    'prepare-commit-msg': 'echo "$1 will be transformed into the first argument of the hook"',
    'post-commit': 'echo "./node_modules/.bin is added to PATH" && my-local-bin'
  }
}