{"dist":{"shasum":"e5f4e53e1292d9ae0969ef08a66bb0bcebf92f39","tarball":"https://registry.npmjs.org/hooks-config/-/hooks-config-0.0.2.tgz","integrity":"sha512-vxuP/1u6brmtEMz24jPLVaBo+1NiGsC361XG2BPynMpn1yrqKnpjFSqqy9j4mUkA8CPBX2GJE3287CsSzO/4JQ==","signatures":[{"sig":"MEUCIQCto6IlQVcnp/uTDMgDJjmm1HOMetf5cxB2DuMDCepuKQIgdkNjaXalhckKVulDO/x4eSHrY0IK0/yV6jL8KaDOWb4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","name":"hooks-config","_from":".","author":{"name":"Matthew Chase Whittemore","email":"mcwhittemore@gmail.com"},"readme":"# Hooks Config\n\nThis module helps you interact with the config section of the hooks.json file which drives [hooks]().\n\n## Usage\n\n`npm install hooks-config`\n\n```\nvar hksConfig = require(\"hooks-config\");\nhksConfig.view(function(data){\n\tdata.setting = \"set\";\n\thksConfig.save(data, function(err){\n\t\tif(err){\n\t\t\t//really, this should never happen...\n\t\t}\n\t});\n});\n```\n\n## API\n\n### hksConfig.hookModule\n\nThe hook module to access. This will default to the module the script is currently being run in.\n\n### hksConfig.view(callback)\n\nReturns an object representing the config options set for the module currently specified.\n\n### hksConfig.save(data, callback)\n\nSaves the provided object as the new config for the current object. This will override any values not passed in.\n\n### hksConfig.project\n\nBoolean defaulted to true. Setting this to false, will mean all the \n\n## Change Log\n\n### 0.0.2\n\n* Adding in boolean flip, to aid in accessing user only config's vs project wide configs.\n\n### 0.0.1\n\n* bug fix with undefined config object\n\n### 0.0.0\n\n* mvp\n\n","license":"BSD-2-Clause","scripts":{"test":"mocha"},"_npmUser":{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"},"_npmVersion":"1.3.8","description":"simplify interacting with the hooks.json config options","maintainers":[{"name":"mcwhittemore","email":"mcwhittemore@gmail.com"}],"dependencies":{"colors":"~0.6.2"},"readmeFilename":"readme.md","devDependencies":{"mocha":"~1.13.0","should":"~2.0.1","node-hooks":"0.0.15","esprima.hks":"0.0.0","beautify.hks":"0.0.1"},"_id":"hooks-config@0.0.2","version":"0.0.2"}