validate-commit-email

Validate the email of the current committer in your pre-commit hook.

Usage no npm install needed!

<script type="module">
  import validateCommitEmail from 'https://cdn.skypack.dev/validate-commit-email';
</script>

README

validate-commit-email

Build Status monitored by greenkeeper.io js-standard-style semantic-release

NPM

Validate the email of the current committer in your commit message hook.

If you are using husky, add this to your package.json:

  "scripts": {
    …
    "commitmsg": "validate-commit-email @example.comquot;
  }

This will enforce all committers to use an email that ends with @example.com.