Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

commit-message-validator

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commit-message-validator - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

2

package.json
{
"name": "commit-message-validator",
"version": "0.1.3",
"version": "0.1.4",
"description": "Git commit-msg hook validator",

@@ -5,0 +5,0 @@ "main": "index.js",

# commit-message-validator
Git commit-msg hook validator
Git commit-msg validator
This package provides you a binary that you can use as a git hook to validate the commit message.
If you are using githook package such as [husky](https://www.npmjs.com/package/husky), add `"commitmsg": "commit-message-validator"` to your npm scripts in package.json.
This package can be used with githook packages such as [husky](https://www.npmjs.com/package/husky).
If you are using **husky**, add `"commitmsg": "commit-message-validator"` to your npm scripts in package.json.
# Installation

@@ -18,5 +20,12 @@

2. Install githook [husky](https://www.npmjs.com/package/husky)
3. Custom commit-message regex pattern in package.json
3. Config commit-msg hook to run commit-message-validator in package.json
{
scripts: {
"commitmsg": "commit-message-validator"
}
}
4. Custom commit-message regex pattern in package.json
{
"config": {

@@ -29,2 +38,19 @@ "commit-message-validator": {

}
Or
{
"config": {
"commit-message-validator": {
/* your config here, pattern can be an array */
"pattern": [
"pattern1",
"pattern2",
/* ... */
"pattern N"
]
}
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc