httpeace-definer
v0.0.4
Published
Handle common variable
Downloads
2
Readme
#Install
npm install --save httpeace-definer
#Host
create define file(s) /store/define/testing.json
{
"test": "ing"
}
init
var definer = require('httpeace-definer');
definer.init(function(){
console.log('done!');
})
router.route('/defines').get(function(req, res){
definer.host(res);
});
get value
var defines = require('httpeace-definer').defines;
console.log(defines);
#Client
init
var definer = require('httpeace-definer');
definer.load(function(){
console.log('done!');
});
get value
var defines = require('httpeace-definer').defines;
console.log(defines);
Update
./node_modules/.bin/httpeace-definer-update