mutableconf
v1.0.0
Published
Easy to use mutable configuration utilities for node apps
Downloads
1
Readme
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)
path
struseSeed
boolseed
obj
mutableconf.set(key, value)
key
objvalue
obj
mutableconf.get(key)
key
obj
mutableconf.save()