1.0.0 • Published 5 years ago

mutableconf v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

mutableconf

FOSSA Status

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 str
  • useSeed bool
  • seed obj

mutableconf.set(key, value)

  • key obj
  • value obj

mutableconf.get(key)

  • key obj

mutableconf.save()