loconf

0.0.3 • Public • Published

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'));
 

Readme

Keywords

Package Sidebar

Install

npm i loconf

Weekly Downloads

7

Version

0.0.3

License

none

Last publish

Collaborators

  • linkwisdom