Skip to content

Instantly share code, notes, and snippets.

View eedrah's full-sized avatar

Eedrah eedrah

View GitHub Profile
@ahdinosaur
ahdinosaur / STACKS.md
Last active March 17, 2016 10:12
stack attack
@domenic
domenic / README.md
Created March 29, 2012 16:01
Cross-platform git hooks for Node.js

Here's how this works:

  • Include a git_hooks/ directory in your project, with these two files (plus other hooks if you want, written in a similar style).
  • Add "npm" to your devDependencies in package.json, so that the pre-commit hook can do its magic.
  • Add test and lint scripts to your package.json, e.g.
    "scripts": {
        "test": "mocha",
 "lint": "jshint ./lib --show-non-errors"