husky-check-email

0.0.7 • Public • Published

husky-check-email

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

Add this module to only allow git commits with emails from certain domain.

Install

npm i husky-check-email

Usage (package.json)

If you want to validate email against one domain:

{
  "husky": {
    "hooks": {
      "pre-commit": "husky-check-email @mydomain.com"
    }
  }
}

If you want to validate email against several domains:

{
  "husky": {
    "hooks": {
      "pre-commit": "husky-check-email @mydomain.com,@mail.ru"
    }
  }
}

See also

Package Sidebar

Install

npm i husky-check-email

Weekly Downloads

6,579

Version

0.0.7

License

MIT

Unpacked Size

4.27 kB

Total Files

4

Last publish

Collaborators

  • jehy-true