think-config
v1.1.3
Published
config for ThinkJS
Downloads
2,718
Keywords
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);