1.0.2 • Published 4 years ago

git-hooks-util v1.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

git-hooks-util

Origin

Installation

Install it globally

npm i git-hooks-util -g

or

Install as a dependency

npm i git-hooks-util --save-dev

If you install it as a dependency, it will automatically init the module after installing

Usage

ghu [init]

What it is doing

  1. read files in .git/hooks
    • if hook does not exist, copy multiple-git-hooks.sh
    • if exists, append to the end(assumed the shebang is /bin/sh)
  2. create folder .githooks
  3. create template in .githooks
  4. examples folder

Notes

  1. it would change git hooks behavior such that husky, git-hooks-js, etc. would be affected.
1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago