0.1.1 • Published 10 months ago

msg-time v0.1.1

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
10 months ago

msg-time

Conventional commit message enforcer

banner

npm coverage npm type definitions license install size

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.

Background

Why not just use commitlint instead?

msg-timecommitlint
0 deps200 nested deps
npm.io26.5MB

commitlint = @commitlint/cli + @commitlint/config-conventional

Install

This package is available from the npm registry.

npm install --save-dev msg-time

Usage

With husky:

npx husky add .husky/commit-msg 'npx msg-time'

With simple-git-hooks:

{
  "name": "your-package-json",
  // ...
  "simple-git-hooks": {
    "commit-msg": "npx msg-time"
  }
  // ...
}

Contributing

GitHub issues / PRs welcome.

Dev environment requires:

  • node >= 16.14.0
  • npm >= 6.8.0
  • git >= 2.11

Licence

Apache-2.0