Socket
Socket
Sign inDemoInstall

husky

Package Overview
Dependencies
0
Maintainers
1
Versions
207
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.0 to 0.4.1

12

bin/install.js
#!/usr/bin/env node
// Run when package is installed
var fs = require('fs')
var husky = require('../src/')

@@ -10,5 +11,8 @@

husky.create(dir, 'pre-commit', 'npm run precommit')
husky.create(dir, 'pre-push', 'npm run prepush')
console.log(' done\n')
if (fs.existsSync(dir)) {
husky.create(dir, 'pre-commit', 'npm run precommit')
husky.create(dir, 'pre-push', 'npm run prepush')
console.log(' done\n')
} else {
console.log(' can\'t find .git/hooks/')
}
{
"name": "husky",
"version": "0.4.0",
"version": "0.4.1",
"description": "Prevents bad commit or push (git hooks, pre-commit, pre-push and all that stuff...)",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -25,4 +25,4 @@ # 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 `-n` 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`._
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc