This module helps you interact with the config section of the hooks.json file which drives hooks.
npm install hooks-config
var hksConfig = require("hooks-config");
hksConfig.view(function(data){
data.setting = "set";
hksConfig.save(data, function(err){
if(err){
//really, this should never happen...
}
});
});
The hook module to access. This will default to the module the script is currently being run in.
Returns an object representing the config options set for the module currently specified.
Saves the provided object as the new config for the current object. This will override any values not passed in.
Boolean defaulted to true. Setting this to false, will mean all the
- Adding in boolean flip, to aid in accessing user only config's vs project wide configs.
- bug fix with undefined config object
- mvp