0.0.8 • Published 4 months ago

husky-check-email v0.0.8

Weekly downloads
2,289
License
MIT
Repository
github
Last release
4 months ago

husky-check-email

npm license Build 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"
    }
  }
}

You can also validate using a regex:

{
  "husky": {
    "hooks": {
      "pre-commit": "husky-check-email @mydomain.[a-z]+"
    }
  }
}

See also

0.0.8

4 months ago

0.0.7

5 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago