{"bin":{"hooks":"./bin/hooks.js"},"bugs":{"url":"https://github.com/mcwhittemore/node-hooks/issues"},"dist":{"shasum":"0954899987361c76ad7c6089eb7a78e0a7bbd7f8","tarball":"https://registry.npmjs.org/node-hooks/-/node-hooks-0.0.2.tgz","integrity":"sha512-ANnjzt+KKCiZwAYn+jsVrVrku0uZ1J41wnV140mEkxyamXT9m5ih5hJYdA5Pff+vcibsUQhLgAHELXDvTn1UUw==","signatures":[{"sig":"MEUCIG2uJwVma8yoqGFAlNZb/0uG1rNuga+Ai6JnSvX1rfGyAiEA1/u7Q9rtVJNfnu9b1kp848QKxCkcl3BHHZMAi2tSzAg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./bin/hooks.js","name":"node-hooks","_from":".","author":{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"},"readme":"# Hooks\n\nAn [NPM](https://github.com/isaacs/npm) for git hooks.\n\n## Terms\n\n* `hook-module`: Any module in npm that meets the `hook-module specification`. \n* `hook-module specification`: A set of guidelines that define what it means to be a `hook-module`. [View here.](https://github.com/mcwhittemore/node-hooks/blob/master/docs/hook-module-specification.md)\n* `npm`: node package manager. This can be (and is) used for more things than node modules.\n* `npm-module`: a bit of code that can be downloaded via npm.\n* `package.json`: a required file for `npm-modules` defined [here](https://github.com/isaacs/npm/blob/master/doc/files/package.json.md).\n\n## Setup\n\n```\nnpm install -g node-hooks\n```\n\n## Use\n\n```\ngit init\nhooks install\nhooks add new-hook\n```\n\n## How to write a git hooks for `Hooks`\n\nThe [hook-module sepcs](https://github.com/mcwhittemore/node-hooks/blob/master/docs/hook-module-specification.md) should cover some of the basics while the [hook-module best practices](https://github.com/mcwhittemore/node-hooks/blob/master/docs/hook-module-best-practices.md) doc will help you avoid trip ups.\n\n## Is there a way to search npm for hook-modules only?\n\nWorking on that. See the TODO list below.\n\n## Commands\n\n### hooks install\n\nInstalls hooks into the current working directory, seeding the required hooks.json and package.json files if needed.\n\nIt will also add node-hooks to the projects project.json devDependencies and node_modules folder so that all developers on the project will use the same hooks even if they don't have node-hooks installed locally.\n\n#### Options\n\n* --soft: stops install from adding hooks to the package.json devDependencies and node_modules. This is \n\n### hooks uninstall\n\nUninstall hooks from the current working directory. Removes hooks.json, but does not touch package.json or the node_module directory.\n\n### hooks add {hook-module} [options]\n\nAdds an npm module to the local hooks project if the `hook module's` package.json fits the `hook-module specification` below. By default the module will be added to the hook specified in the module's package.json \"default-hook\" parameter and to the project's package.json devDependencies parameter.\n\n#### Options\n\n* --hook {GIT HOOK NAME}: this option overrides the hook-module's default-hook parameter.\n* -f, --force: installs a module from npm even if it doesn't meet the `hooks-module specification`. Requires the --hook option\n* --soft: don't add the module to the package.json\n\n### hooks remove {hook-module} [options]\n\nRemoves a `hook-module` from the default hooks.\n\n#### Options\n\n* --hook {GIT HOOK NAME}: remove module from specified git hook.\n* --all-hooks: remove the module from all git hooks\n* --hard: Also removes the module from the project's devDependencies parameter.\n\n### hooks run {git-hook}\n\nRuns a hook.\n\n## To Do\n\n1. Rework globals\n\t* ~/.hooks/global: hooks a user wants to run for all their projects\n1. Add `hooks skip hook-module` to skip globals\n\n## Upcoming Commands\n\n### globals\n\n* hooks install --global\n* hooks uninstall --global\n* hooks add --global\n* hooks remove --global\n* hooks run --global\n\n### hooks skip {hook-module} [options]\n\nRemove a modules from the project (hooks remove --all-hooks) and forces a skip if its installed on a global level\n\n#### Options\n\n* --hook {GIT HOOK NAME}: remove module from specified git hook.\n* --all-hooks: remove the module from all git hooks\n\n### hooks list [options]\n\nLists the module hooks as they are currently set up in the active project\n\n#### Options\n\n* --global: Lists the module hooks as they are currently setup in the defaults folder.\n\n### hooks search key words\n\ndoes an npm search for modules tagged git-hooks\n","license":"MIT","scripts":{"test":"mocha","postinstall":"node configure.js install","preuninstall":"node configure.js uninstall"},"_npmUser":{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"},"keywords":["git","hooks"],"repository":{"url":"git://github.com/mcwhittemore/node-hooks.git","type":"git"},"_npmVersion":"1.3.8","description":"An NPM for git hooks.","directories":{"test":"test"},"maintainers":[{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"}],"dependencies":{"colors":"~0.6.1","commands":"0.0.7"},"preferGlobal":true,"readmeFilename":"readme.md","devDependencies":{"mocha":"~1.12.0","should":"1.2.2"},"_id":"node-hooks@0.0.2","version":"0.0.2"}