🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

msg-time

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

msg-time

Conventional commit message enforcer 🧐

latest
npmnpm
Version
0.1.1
Version published
Weekly downloads
17
13.33%
Maintainers
1
Weekly downloads
 
Created
Source

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
26.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

Keywords

conventional

FAQs

Package last updated on 20 Jun 2023

Did you know?

Socket

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