pre-commit.js

2.0.1 • Public • Published

Pre-Commit JS

Install your custom pre-commit Node.js script

npm (scoped) install size downloads
license Forks Stars

npm i -D pre-commit.js

Usage

It automatically sets pre-commit hook after installation. Check .git/hooks/pre-commit to sure.

Then put the path of your desired script in preCommitScript field in your "package.json" file.

Currently, only Node.js scripts are acceptable. Bun.js support is on the agenda.

Good to know!

You can also manually set it up using:

npx init-pre-commit-hook

after installation (npm install).

Package Sidebar

Install

npm i pre-commit.js

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

9.55 kB

Total Files

8

Last publish

Collaborators

  • mirismaili