Conventional commit message enforcer
msg-time checks that your commit message is a Conventional Commit. If it doesn't match the
spec, it will block the commit and print out a helpful error message (like commitlint).
It performs the same Conventional Commit checking but with a far smaller footprint.
When used with simple-git-hooks or
husky, it will block non-compliant commit messages.
Why not just use commitlint instead?
msg-time |
commitlint |
|---|---|
| 0 deps | 200 nested deps |
| 26.5MB |
commitlint=@commitlint/cli+@commitlint/config-conventional
This package is available from the npm registry.
npm install --save-dev msg-timenpx husky add .husky/commit-msg 'npx msg-time'{
"name": "your-package-json",
// ...
"simple-git-hooks": {
"commit-msg": "npx msg-time"
}
// ...
}GitHub issues / PRs welcome.
Dev environment requires:
- node >= 16.14.0
- npm >= 6.8.0
- git >= 2.11
Apache-2.0