https://github.com/voxpelli/validate-conventional-commit
Smallest simplest conventional commit validator to use with eg Husky
https://github.com/voxpelli/validate-conventional-commit
cli commit-msg commit-msg-linter conventional-commit conventional-commits git-hooks husky validation
Last synced: 3 months ago
JSON representation
Smallest simplest conventional commit validator to use with eg Husky
- Host: GitHub
- URL: https://github.com/voxpelli/validate-conventional-commit
- Owner: voxpelli
- License: 0bsd
- Created: 2023-05-23T12:20:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-07-29T03:50:17.000Z (5 months ago)
- Last Synced: 2025-08-02T00:33:44.577Z (5 months ago)
- Topics: cli, commit-msg, commit-msg-linter, conventional-commit, conventional-commits, git-hooks, husky, validation
- Language: JavaScript
- Homepage:
- Size: 37.1 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# validate-conventional-commit
Smallest simplest conventional commit validator to use with eg [`husky`](https://github.com/typicode/husky)
[](https://www.npmjs.com/package/validate-conventional-commit)
[](https://www.npmjs.com/package/validate-conventional-commit)
[](https://github.com/neostandard/neostandard)
[](https://github.com/voxpelli/types-in-js)
[](https://mastodon.social/@voxpelli)
## Usage
```bash
npx --no validate-conventional-commit < .git/COMMIT_EDITMSG
```
(Or simply just copy and paste the [`cli.js`](cli.js) file into your project if you want to avoid a dependency)
## Related modules
* [`@commitlint/cli`](https://www.npmjs.com/package/@commitlint/cli) – a much more comprehensive and much more heavy alternative
* [`husky`](https://github.com/typicode/husky) – my preferred git hook manager
* [`mtfoley/pr-compliance-action`](https://github.com/mtfoley/pr-compliance-action) – an action that helps validating conventional commit style in PR:s, something this module is not really geared towards