@the-/setting
Setting manager for the-framework
Installation
$ npm install @the-/setting --save
Usage
'use strict'
const theSetting = require('@the-/setting')
async function tryExample() {
const setting = theSetting('.setting.json', {
foo: 1,
})
setting.set({ foo: 2 })
console.log(setting.get('foo')) // -> 2
}
tryExample().catch((err) => console.error(err))
API Guide
- module:@the-/setting
- module:@the-/setting.mixins
- module:@the-/setting.mixins.lockMix
- TheSetting
See API Guide for more detail
License
This software is released under the MIT License.