# git-hook-scripts

> > Collection of Git hook scripts

Latest version **1.0.1** (published 2016-03-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install git-hook-scripts
pnpm add git-hook-scripts
yarn add git-hook-scripts
bun add git-hook-scripts
```

Provides the command `git-hook-scripts`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-03-26 |
| First published | 2016-02-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Sorry as a Service Ltd |
| Maintainers | ukupat |

## Links

- npm: https://www.npmjs.com/package/git-hook-scripts
- Repository: https://github.com/sorry-as-a-service/git-hook-scripts
- Homepage: https://github.com/sorry-as-a-service/git-hook-scripts#readme
- Issues: https://github.com/sorry-as-a-service/git-hook-scripts/issues
- npm.io page: https://npm.io/package/git-hook-scripts

## Dependencies (2)

- [q](https://npm.io/package/q.md) ^1.4.1
- [commander](https://npm.io/package/commander.md) ^2.9.0

## Recent versions

- 1.0.1 (latest) — 2016-03-26
- 1.0.0 — 2016-02-28
- 0.0.0 — 2016-02-28

## README

# git-hook-scripts

> Collection of Git hook scripts

[![npm version](https://badge.fury.io/js/git-hook-scripts.svg)](https://badge.fury.io/js/git-hook-scripts)

## 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](http://blog.npmjs.org/post/85484771375/how-to-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](https://github.com/tj/commander.js)) and
4. make a pull request.

## License

[MIT](//github.com/sorry-as-a-service/git-hook-scripts/blob/master/LICENSE)

---
_Source: https://npm.io/package/git-hook-scripts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
