{"_id":"git-hooks-plus","_rev":"2-3ee2847126f9961ea715e28d5b9fc573","name":"git-hooks-plus","description":"A tool to manage project Git hooks","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"git-hooks-plus","description":"A tool to manage project Git hooks","author":{"name":"Alexander Tarmolov","email":"tarmolov@gmail.com"},"version":"1.0.0","repository":{"type":"git","url":"git+https://github.com/xcatliu/git-hooks-plus.git"},"contributors":[{"name":"Alexander Tarmolov","email":"tarmolov@gmail.com","url":"http://tarmolov.ru/"},{"name":"Denis Khananein","email":"i@zloylos.me","url":"http://zloy.me/"},{"name":"Ikonnikov Konstantin"},{"name":"xcatliu","email":"xcatliu@gmail.com"}],"keywords":["git","hooks","hook","lint","test","development","applypatch-msg","commit-msg","post-applypatch","post-checkout","post-commit","post-merge","post-receive","pre-applypatch","pre-auto-gc","pre-commit","pre-push","pre-rebase","pre-receive","prepare-commit-msg"],"engines":{"node":">=0.8.x"},"engine-strict":true,"scripts":{"postinstall":"node ./bin/git-hooks --install","preuninstall":"node ./bin/git-hooks --uninstall","test":"jscs . && jshint . && mocha --reporter spec --recursive tests","coverage":"istanbul cover _mocha --recursive tests"},"main":"lib/git-hooks","files":["bin","examples","lib"],"devDependencies":{"chai":"2.3.0","istanbul":"0.3.17","jscs":"1.13.1","jshint":"2.8.0","mocha":"2.2.5"},"license":"MIT","gitHead":"52fa64a58c304121b29b8b65a3caaacef27b2fde","bugs":{"url":"https://github.com/xcatliu/git-hooks-plus/issues"},"homepage":"https://github.com/xcatliu/git-hooks-plus#readme","_id":"git-hooks-plus@1.0.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"xcatliu","email":"xcatliu@gmail.com"},"dist":{"integrity":"sha512-x3uJ+l1OedlVfv1Yb1f6zqVLfpPwrtWfhzQbsAcwXEn5JRW2Cr9nmKvRbwhErbPyfPDPKWsYcI8VdkWlbZXZog==","shasum":"c15ba396052df65b74fbebb19ccc85bba485f010","tarball":"https://registry.npmjs.org/git-hooks-plus/-/git-hooks-plus-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE7RMCnxQRZIJVR/+hnV3MzX/60mYbtMJoMPACZS3a7sAiEAtJBKvgHD0MNXepA9lLhY16bc0PxfGWbn1/y0W8ee7gI="}]},"maintainers":[{"name":"xcatliu","email":"xcatliu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-hooks-plus-1.0.0.tgz_1510281516179_0.014218694530427456"}},"1.0.1":{"name":"git-hooks-plus","description":"A tool to manage project Git hooks","author":{"name":"Alexander Tarmolov","email":"tarmolov@gmail.com"},"version":"1.0.1","repository":{"type":"git","url":"git+https://github.com/xcatliu/git-hooks-plus.git"},"contributors":[{"name":"Alexander Tarmolov","email":"tarmolov@gmail.com","url":"http://tarmolov.ru/"},{"name":"Denis Khananein","email":"i@zloylos.me","url":"http://zloy.me/"},{"name":"Ikonnikov Konstantin"},{"name":"xcatliu","email":"xcatliu@gmail.com"}],"keywords":["git","hooks","hook","lint","test","development","applypatch-msg","commit-msg","post-applypatch","post-checkout","post-commit","post-merge","post-receive","pre-applypatch","pre-auto-gc","pre-commit","pre-push","pre-rebase","pre-receive","prepare-commit-msg"],"engines":{"node":">=0.8.x"},"engine-strict":true,"scripts":{"postinstall":"node ./bin/git-hooks --install","preuninstall":"node ./bin/git-hooks --uninstall","test":"jscs . && jshint . && mocha --reporter spec --recursive tests","coverage":"istanbul cover _mocha --recursive tests"},"main":"lib/git-hooks","files":["bin","examples","lib"],"devDependencies":{"chai":"2.3.0","istanbul":"0.3.17","jscs":"1.13.1","jshint":"2.8.0","mocha":"2.2.5"},"license":"MIT","gitHead":"a28e97ab514d795e8e2dd98f2afbacf33aea8022","bugs":{"url":"https://github.com/xcatliu/git-hooks-plus/issues"},"homepage":"https://github.com/xcatliu/git-hooks-plus#readme","_id":"git-hooks-plus@1.0.1","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"xcatliu","email":"xcatliu@gmail.com"},"dist":{"integrity":"sha512-IeIEuXySE+EklJieSIXLoFGLuF5ERutODXZz3UCiL1JAjpvZKNyl9j00iF67i5yfX3sKepS1AHN9d3KmUxgWnw==","shasum":"db7d56abc52dcd907a3fe0e2ce46c5f086a04a37","tarball":"https://registry.npmjs.org/git-hooks-plus/-/git-hooks-plus-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtmAjfCBH1QTwomHBBvuRGwzLM1mOFSIoelWeqpyYh8AIhAKj6XctU/kov7k3nIWbOB5yveeTvtLwRHywhOIstsgok"}]},"maintainers":[{"name":"xcatliu","email":"xcatliu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-hooks-plus-1.0.1.tgz_1510297971791_0.8476375120226294"}}},"readme":"# git-hooks-plus\n\n[![NPM version](https://badge.fury.io/js/git-hooks-plus.svg)](https://www.npmjs.com/package/git-hooks-plus) [![Build Status](https://travis-ci.org/xcatliu/git-hooks-plus.svg)](https://travis-ci.org/xcatliu/git-hooks-plus) [![Coverage Status](https://coveralls.io/repos/xcatliu/git-hooks-plus/badge.svg?branch=git-hooks-plus&service=github)](https://coveralls.io/github/xcatliu/git-hooks-plus?branch=git-hooks-plus) [![Dependency Status](https://david-dm.org/xcatliu/git-hooks-plus.svg)](https://david-dm.org/xcatliu/git-hooks-plus) [![npm](https://img.shields.io/npm/dm/git-hooks-plus.svg?maxAge=2592000)](https://www.npmjs.com/package/git-hooks-plus)\n\n> `git-hooks-plus` is forked from [git-hooks-js](https://github.com/tarmolov/git-hooks-js) and supports Windows.\n\n`git-hooks-plus` is an utility for managing and running project [git hooks](http://git-scm.com/docs/githooks) for [nodejs](http://nodejs.org/) projects.\n\nIt has zero dependecies and easy to use.\n\nJust [install git-hooks](#install) and it will run your hooks when a hook is called by git.\n\n## Why do you need git hooks in your project?\nHooks are little scripts you can place in `$GIT_DIR/hooks` directory to trigger action at certain points.\n\nThey are very powerful and helpful.\n\nYou can do a lot of things with them:\n\n  * [Validate code](http://jshint.com/) and run tests before commit.\n  * [Check codestyle](http://jscs.info/).\n  * Spell check the commit message or check it format.\n  * and etc.\n\n**Note.** When you use `git-hooks-plus`, you should not modify `$GIT_DIR/hooks` directory manually because `git-hooks-plus` will do it for you.\n\n## Supported platforms\n  * Unix\n  * macOS\n  * Windows\n\n## Install\nInstall `git-hooks-plus` in your project.\n```bash\nnpm install git-hooks-plus --save-dev\n```\n\nTo keep things organized, `git-hooks-plus` looks for scripts in sub-directories named after the git hook name.\nAll these sub-directories should be stored in `.githooks` directory in the project root.\n\nLet's create some dummy pre-commit hook.\n```bash\nmkdir -p .githooks/pre-commit\necho -e '#!/usr/bin/env node' \"\\nconsole.log('hi!');\" > .githooks/pre-commit/hello.js\nchmod +x .githooks/pre-commit/hello.js  # This may not working in Windows, but don't worry, hello.js will be executed through node\n```\n\nThen just try to commit and see how things are rolling.\n```bash\ngit add .githooks package.json\ngit commit -m \"Add git-hooks\"\n```\n\nSee also [hooks examples](examples).\n\nIt's worth to mention that our library checks for gitignore rules while executing scripts in .githooks/ directories.\n\n## Related projects\n  * Original [git-hooks](https://github.com/icefox/git-hooks) project\n  * [pre-commit](https://github.com/observing/pre-commit)\n  * [husky](https://github.com/typicode/husky)\n","maintainers":[{"name":"xcatliu","email":"xcatliu@gmail.com"}],"time":{"modified":"2022-05-03T19:01:14.372Z","created":"2017-11-10T02:38:36.379Z","1.0.0":"2017-11-10T02:38:36.379Z","1.0.1":"2017-11-10T07:12:51.857Z"},"homepage":"https://github.com/xcatliu/git-hooks-plus#readme","keywords":["git","hooks","hook","lint","test","development","applypatch-msg","commit-msg","post-applypatch","post-checkout","post-commit","post-merge","post-receive","pre-applypatch","pre-auto-gc","pre-commit","pre-push","pre-rebase","pre-receive","prepare-commit-msg"],"repository":{"type":"git","url":"git+https://github.com/xcatliu/git-hooks-plus.git"},"contributors":[{"name":"Alexander Tarmolov","email":"tarmolov@gmail.com","url":"http://tarmolov.ru/"},{"name":"Denis Khananein","email":"i@zloylos.me","url":"http://zloy.me/"},{"name":"Ikonnikov Konstantin"},{"name":"xcatliu","email":"xcatliu@gmail.com"}],"author":{"name":"Alexander Tarmolov","email":"tarmolov@gmail.com"},"bugs":{"url":"https://github.com/xcatliu/git-hooks-plus/issues"},"license":"MIT","readmeFilename":"README.md"}