BaffinLee / think-config

Config for ThinkJS 3.x

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Config for ThinkJS 3.x

License:MIT License


Languages

Language:JavaScript 100.0%