You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

git-pre-hooks

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-pre-hooks

Automatically install git pre hooks in your git repository that run your task

latest
Source
npmnpm
Version
1.2.1
Version published
Weekly downloads
632
-3.95%
Maintainers
1
Weekly downloads
 
Created
Source

git-pre-hooks

NPM version node version Gittip

Automatically install git pre hooks in your git repository that run your task.

Installation

$ npm install git-pre-hooks --save-dev

Usage

First install git-pre-hooks from npm.

npm install git-pre-hooks --save-dev

Then add git-pre-hooks config in your package.json:

"git-pre-hooks": {
  "pre-commit": "make jshint",
  "pre-push": "make test",
  "pre-release": ["make test", "make build", "make test-build"],
  "post-release": "npm publish"
}

pre-release & post-release hook

If you are using git-extras, git-pre-hooks also support pre-release and post-release hook. Please make sure you install git-extras after 2014/12/03.

One-liner:

$ (cd /tmp && git clone --depth 1 https://github.com/tj/git-extras.git && cd git-extras && sudo make install)

License

MIT

Keywords

git

FAQs

Package last updated on 20 Dec 2018

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