0.0.3 • Published 10 years ago

loconf v0.0.3

Weekly downloads
15
License
-
Repository
github
Last release
10 years ago

loconf

local configuration persistence

feature

  • json format
  • two level support

usage

// config project `fengchao`
env.use('fengchao');

// set item port as 8080
env.set('port', 8080);
env.set('host', 'localhost');

// get item value
var host = env.get('host');

// get fengchao configuration
console.log(env.getContext('project'));