New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

husky-hook

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

husky-hook

Husky hooks for scripts can be customized, such as verify commit message.

latest
npmnpm
Version
1.3.0
Version published
Maintainers
1
Created
Source

husky-hook

customize husky hooks, such as verify the commit message.

Install

with npm:

npm install husky-hook --save-dev

or with yarn:

yarn add husky-hook --dev

Usage

Enable husky-hook

with npm:

run:

npx husky-hook install

To automatically have husky hooks enabled after install, edit package.json

npm set-script prepare "husky-hook install"

or with yarn:

yarn husky-hook install

To automatically have Git hooks enabled after install, edit package.json

package is private:

// package.json: your package is private, you only need postinstall
{
  "private": true,
  "scripts": {
    "postinstall": "husky-hook install"
  }
}

package is public:

// package.json: your package is public
{
  "private": false,
  "scripts": {
    "postinstall": "husky-hook install",
    "prepublishOnly": "pinst --disable",
    "postpublish": "pinst --enable"
  }
}

Uninstall husky-hook

Remove "prepare/postinstall": "husky-hook install" from package.json and run:

npx husky-hook uninstall
npm uninstall husky-hook

Reference

https://typicode.github.io/husky/#/

FAQs

Package last updated on 30 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts