New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

husky-check-email

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

husky-check-email

check email for domain before git commit

0.0.8
latest
Source
npm
Version published
Weekly downloads
10K
-8.9%
Maintainers
0
Weekly downloads
 
Created
Source

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

Keywords

hooks

FAQs

Package last updated on 08 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts