🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

pro-commit

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pro-commit

Easily add a Git pre-commit hook to your Node.js project.

1.2.3
latest
Source
npm
Version published
Weekly downloads
9
-40%
Maintainers
1
Weekly downloads
 
Created
Source

pro-commit

Easily add a Git pre-commit hook to your Node.js project.

npm npm

Install

npm install --save-dev pro-commit

Uninstall

npm uninstall --save-dev pro-commit
# change this if the project has a custom Git hooks path
rm .git/hooks/pre-commit

Usage

Add prepare and pro-commit:task to scripts in package.json:

{
  "scripts": {
    "prepare": "pro-commit",
    "pro-commit:task": "..."
  }
}

Run install to ensure that the prepare lifecycle script sets up a Git pre-commit hook:

npm install

Keywords

commit

FAQs

Package last updated on 25 Jan 2022

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