https://github.com/thinkjs/think-config
Config for ThinkJS 3.x
https://github.com/thinkjs/think-config
config thinkjs3
Last synced: about 1 year ago
JSON representation
Config for ThinkJS 3.x
- Host: GitHub
- URL: https://github.com/thinkjs/think-config
- Owner: thinkjs
- License: mit
- Created: 2017-02-24T01:44:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-07-24T07:57:36.000Z (almost 5 years ago)
- Last Synced: 2025-03-22T03:51:15.073Z (about 1 year ago)
- Topics: config, thinkjs3
- Language: JavaScript
- Size: 11.7 KB
- Stars: 3
- Watchers: 8
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# think-config
Config manager for ThinkJS 3.x
## How to use
```
npm install think-config
```
```js
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);
```