# git-hooks-scripts **Repository Path**: mirrors_satya164/git-hooks-scripts ## Basic Information - **Project Name**: git-hooks-scripts - **Description**: Run custom scripts as Git hooks - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-04 - **Last Updated**: 2026-03-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # git-hooks-scripts [![Version][version-badge]][package] [![MIT License][license-badge]][license] Run custom scripts as Git hooks. ## Installation ```sh npm install --save-dev git-hooks-scripts ``` ## Usage Add your scripts under a section called `git-hooks-scripts` in your `package.json` file: ```json "git-hooks-scripts": { "pre-commit": "eslint ." } ``` You can also get arguments from Git via the `GIT_HOOKS_PARAMS` environment variable. For example, to setup `commitlint`, you can do the following: ```json "git-hooks-scripts": { "commit-msg": "commitlint -E GIT_HOOKS_PARAMS" } ``` [version-badge]: https://img.shields.io/npm/v/git-hooks-scripts.svg?style=flat-square [package]: https://www.npmjs.com/package/git-hooks-scripts [license-badge]: https://img.shields.io/npm/l/git-hooks-scripts.svg?style=flat-square [license]: https://opensource.org/licenses/MIT