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 7.0.0 to 7.0.1

2

lib/index.js

@@ -10,3 +10,3 @@ "use strict";

function install(dir = '.husky') {
if (git(['rev-parse']).status) {
if (git(['rev-parse']).status !== 0) {
return;

@@ -13,0 +13,0 @@ }

{
"name": "husky",
"version": "7.0.0",
"version": "7.0.1",
"description": "Modern native Git hooks made easy",

@@ -24,2 +24,3 @@ "keywords": [

"test": "sh test/all.sh",
"lint": "eslint src --ext .ts",
"serve": "docsify serve docs",

@@ -26,0 +27,0 @@ "prepare": "npm run build && node lib/bin install"

@@ -26,2 +26,3 @@ # husky

npx husky add .husky/pre-commit "npm test"
git add .husky/pre-commit
```

@@ -32,3 +33,3 @@

```sh
$ git commit -m "Keep calm and commit"
git commit -m "Keep calm and commit"
# `npm test` will run

@@ -35,0 +36,0 @@ ```

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