1.0.0 • Published 6 years ago
mutableconf v1.0.0
mutableconf
What is this?
I needed a configuration engine that supported both static file configurations and the ability to change them on the fly, whilst saving them back to the file.
How do I use it?
There are 2 branches, one is for use with ES5 CommonJS and includes the ESM loader, the other is for ES6+ Javascript Modules and does not include the ESM loader.
Both these branches are functionally identical.
mutableconf.init(path, useSeed, seed)
- pathstr
- useSeedbool
- seedobj
mutableconf.set(key, value)
- keyobj
- valueobj
mutableconf.get(key)
- keyobj
mutableconf.save()
1.0.0
6 years ago