husky-check-email
v0.0.7
Published
check email for domain before git commit
Downloads
33,812
Maintainers
Readme
husky-check-email
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"
}
}
}