husky-check-name

check user name against email before git commit

Usage no npm install needed!

<script type="module">
  import huskyCheckName from 'https://cdn.skypack.dev/husky-check-name';
</script>

README

husky-check-name

npm license Build Status dependencies Status devDependencies Status Coverage Status Known Vulnerabilities

Add this module to check that user names correspond to their emails.

For example, user with email "kate@google.com" should have git name "Kate", and user with name "vladimir.putin@kremlin.ru" should have git name "Vladimir Putin".

Install

npm i husky-check-name

Usage (package.json)

{
  "husky": {
    "hooks": {
      "pre-commit": "husky-check-name"
    }
  }
}

See also