pre-commit : Automatically install pre-commit hooks for your npm modules.. You can installing pre-commit npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install pre-commit $ sudo npm install -g pre-commit
If want to update the pre-commit package execute the command as below,
$ sudo npm update pre-commit
Update package globally,
$ npm install -g pre-commit
$ sudo git clone https://github.com/rektide/pre-commit.git
$ sudo npm install -g ./pre-commit
pre-commit@1.2.2 /usr/lib/node_modules/pre-commit
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall pre-commit
| Package Name | pre-commit |
| Version | 1.2.2 |
| Description | Automatically install pre-commit hooks for your npm modules. |
| Released Date | 2016-12-13T12:03:29.029Z |
| Published by | 3rdeden |
| How to Learn | https://www.npmjs.com/package/pre-commit/tutorial |