← all packages

npm (opens in a new tab)cli

commitguard

Git hooks for Node, JS and TS projects, configured from one YAML file. The Node answer to dart_husky.

30-day installs
37
version
0.1.4

install

add it to a project

npm i -D @moulibheemaneti/commitguard

why

the problem it solves

dart_husky solved this for Dart, and the same argument holds in reverse: a Node project should not need a Go binary to run a pre-commit hook. Same YAML shape, same ideas, different runtime.

how

how it works

It reads `commitguard.yaml` from the project root and installs shell scripts into `.git/hooks/`. When git fires a hook, the script calls back into the CLI, which runs whatever the config defines.

This monorepo runs it. The `commitguard.yaml` at the root is what enforces Biome and Conventional Commits on every commit made here — including the ones that built this page.

what you get

features

  • One YAML file for pre-commit, commit-msg and pre-push
  • Conventional Commits validation built in
  • Sequential or parallel commands, staged-only, glob-filtered
  • No external runtime beyond the one a Node project already has

elsewhere

git-hooks · husky · lefthook · cli · commit-msg · pre-commit

next

more packages

  • pub.devwidget

    adaptive_navbar

    A Flutter navigation bar that renders in full on desktop and collapses into a drawer on mobile.

    30-day installs
    4,476
  • pub.devcli

    dart_husky

    Git hooks for Dart and Flutter projects — pre-commit, commit-msg, pre-push — in pure Dart.

    30-day installs
    1,180
  • pub.devwidget

    mb_contact_form

    A drop-in Flutter contact form — name, email, message — that opens the device's mail app on submit.

    30-day installs
    405