@klettelars/config-provider
v0.0.2
Published
Managing configs
Downloads
15
Readme
Config Provider
A package that makes it easy working with configs
import {ConfigProvider} from "@klettelars/config-provider"
const config = await ConfigProvider.fromFile("./config.json")
console.log(await config.getWD())
config.setWD({key1: "test1"})
config.updateWD({key2: "test2"})
const subConfig = await config.subConfig("subConfigKey")
subconfig.setWD({key3: "test3"})
console.log(await config.getWD())