Socket
Socket
Sign inDemoInstall

husky-check-email

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    husky-check-email

check email for domain before git commit


Version published
Weekly downloads
8.1K
increased by7.22%
Maintainers
1
Install size
4.19 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 15 Oct 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc