Socket
Socket
Sign inDemoInstall

husky

Package Overview
Dependencies
Maintainers
1
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

husky - npm Package Compare versions

Comparing version 8.0.3 to 9.0.1

bin.js

61

package.json
{
"name": "husky",
"version": "8.0.3",
"description": "Modern native Git hooks made easy",
"keywords": [
"git",
"hooks",
"pre-commit"
],
"homepage": "https://typicode.github.io/husky",
"repository": "typicode/husky",
"funding": "https://github.com/sponsors/typicode",
"license": "MIT",
"author": "Typicode <typicode@gmail.com>",
"bin": "lib/bin.js",
"main": "lib/index.js",
"files": [
"lib",
"husky.sh"
],
"scripts": {
"build": "tsc",
"test": "sh test/all.sh",
"lint": "eslint src --ext .ts",
"serve": "docsify serve docs",
"prepare": "npm run build && node lib/bin install"
},
"devDependencies": {
"@commitlint/cli": "^17.3.0",
"@commitlint/config-conventional": "^17.3.0",
"@tsconfig/node14": "^1.0.3",
"@types/node": "^18.11.18",
"@typicode/eslint-config": "^1.1.0",
"docsify-cli": "^4.4.4",
"typescript": "^4.9.4"
},
"engines": {
"node": ">=14"
}
"name": "husky",
"version": "9.0.1",
"description": "Modern native Git hooks",
"keywords": [
"git",
"hooks",
"pre-commit"
],
"repository": {
"type": "git",
"url": "git+https://github.com/typicode/husky.git"
},
"funding": "https://github.com/sponsors/typicode",
"license": "MIT",
"author": "typicode",
"type": "module",
"bin": {
"husky": "bin.js"
},
"exports": "./index.js",
"engines": {
"node": ">=18"
}
}

@@ -1,38 +0,1 @@

# husky
> Modern native Git hooks made easy
Husky improves your commits and more 🐶 *woof!*
# Install
```
npm install husky --save-dev
```
# Usage
Edit `package.json > prepare` script and run it once:
```sh
npm pkg set scripts.prepare="husky install"
npm run prepare
```
Add a hook:
```sh
npx husky add .husky/pre-commit "npm test"
git add .husky/pre-commit
```
Make a commit:
```sh
git commit -m "Keep calm and commit"
# `npm test` will run
```
# Documentation
https://typicode.github.io/husky

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc