Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.9.2 to 0.9.3

5

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

@@ -37,3 +37,6 @@ "main": "index.js",

"rimraf": "^2.2.8"
},
"dependencies": {
"normalize-path": "^1.0.0"
}
}

13

README.md

@@ -8,5 +8,5 @@ # husky [![](http://img.shields.io/npm/dm/husky.svg?style=flat)](https://www.npmjs.org/package/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)

```bash
$ npm install husky --save-dev
```
npm install husky --save-dev
```

@@ -18,3 +18,4 @@ ```javascript

"precommit": "npm test",
"prepush": "npm test"
"prepush": "npm test",
"...": "..."
}

@@ -28,6 +29,4 @@ }

All scripts are optional, existing hooks aren't replaced and adding `--no-verify` to your git commands lets you bypass hooks.
Existing hooks aren't replaced and adding `--no-verify` to your git commands lets you bypass hooks. You can also use any hook listed [here](https://github.com/typicode/husky/blob/master/hooks.json).
To uninstall husky, simply run `npm rm husky --save-dev`.
Supported hooks are listed [here](https://github.com/typicode/husky/blob/master/hooks.json) (simply remove `-` when adding them to your `package.json`)
To uninstall husky, simply run `npm rm husky --save-dev`
var fs = require('fs')
var path = require('path')
var exec = require('child_process').exec
var normalize = require('normalize-path')

@@ -47,4 +48,7 @@ module.exports = {

// On Windows normalize path (i.e. convert \ to /)
var normalizedPath = normalize(relativePath)
data +=
'cd ' + relativePath + '\n'
'cd ' + normalizedPath + '\n'
// Fix for issue #16 #24

@@ -51,0 +55,0 @@ // Test if script is defined in package.json

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