think-config

config for ThinkJS

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
think-config
301.1.3a year ago6 years agoMinified + gzip package size for think-config in KB

Readme

think-config
Config manager for ThinkJS 3.x

How to use

npm install think-config

const Config = require('think-config');
const instance = new Config(config);
instance.get('name'); 
instance.get('foo.bar');
instance.get(); // get all config
instance.get('name', otherConfig);

instance.set('name', value);
instance.set('foo.bar', value);