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 0.5.4 to 0.6.0

2

bin/install.js

@@ -14,4 +14,6 @@ // Run when package is installed

husky.create(dir, 'pre-push', 'npm run prepush --silent')
husky.create(dir, 'post-merge', 'npm run postmerge --silent')
console.log(' done\n')
}
})

@@ -11,2 +11,3 @@ // Run when package is uninstalled

husky.remove(dir, 'pre-push')
husky.remove(dir, 'post-merge')

@@ -13,0 +14,0 @@ console.log(' done\n')

6

package.json
{
"name": "husky",
"version": "0.5.4",
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush and all that stuff...)",
"version": "0.6.0",
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)",
"main": "index.js",

@@ -23,2 +23,4 @@ "scripts": {

"prepush",
"post-merge",
"postmerge",
"test"

@@ -25,0 +27,0 @@ ],

@@ -25,4 +25,6 @@ # husky [![NPM version](https://badge.fury.io/js/husky.svg)](http://badge.fury.io/js/husky) [![Build Status](https://travis-ci.org/typicode/husky.svg?branch=master)](https://travis-ci.org/typicode/husky)

_Both npm scripts are optional, existing hooks aren't replaced and adding `-n` to your git commands lets you bypass hooks._
_Both npm scripts are optional, existing hooks aren't replaced and adding `--no-verify` to your git commands lets you bypass hooks._
_To uninstall husky, simply run `npm rm husky --save-dev`._
_To uninstall husky, simply run `npm rm husky --save-dev`_.
_Other supported hook: `post-merge`_

@@ -40,3 +40,3 @@ var fs = require('fs')

+ ' echo\n'
+ ' echo "husky - ' + name + ' hook failed (add -n to bypass)"\n'
+ ' echo "husky - ' + name + ' hook failed (add --no-verify to bypass)"\n'
+ ' echo\n'

@@ -43,0 +43,0 @@ + ' exit 1\n'

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