Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

git-hook-scripts

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-hook-scripts

> Collection of Git hook scripts

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

git-hook-scripts

Collection of Git hook scripts

npm version

Available scripts

  • check-issue-nr-in-commit-msg - checks if commit message has an Issue number marked down
  • npm-install-after-merge - calls npm install if package.json or bower.json has been changed after merge

Installation

Install npm and use it to install git-hook-scripts

$ npm install --save-dev git-hook-scripts

Usage

In JavaScript

var scripts = require('git-hook-scripts');

scripts.npmInstallAfterMerge();
scripts.checkIssueNrInCommitMsg();

CLI

Usage: ./node_modules/.bin/git-hook-scripts [options] [command]


Commands:

  check-issue-nr-in-commit-msg|issue-nr   Checks if commit message has an Issue number marked down
  npm-install-after-merge|install         Calls npm install if package.json or bower.json has been changed after merge

Contribute

  1. Implement a Git hook script,
  2. move the script to ./src,
  3. write the command to ./git-hook-scripts (more info about commander.js) and
  4. make a pull request.

License

MIT

FAQs

Package last updated on 26 Mar 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc