conf
conf copied to clipboard
Simple config handling for your app or module
Hopefully leads to resolving https://github.com/sindresorhus/electron-store/issues/52
Continuation of https://github.com/sindresorhus/electron-store/pull/171
Implementing a new feature described in issue https://github.com/sindresorhus/electron-store/issues/18. Type information is stored under `${INTERNAL_KEY}.type` as suggested, the `get` method checks if there's a type key present, if there's it converts...
Fixes https://github.com/sindresorhus/conf/issues/80
I get a typescript compilation error when I try to pass in a key with dot-notation to the `onDidChange` method. This seems to happen because the type of key the...
This line makes Typescript accept any key/value for `set` https://github.com/sindresorhus/conf/blob/06b640d8cfa22d020b1ac1996a9dca0fc0289f83/source/index.ts#L197 I think it should be safe to remove since `get` does not have an equivalent overload
https://github.com/sindresorhus/conf/blob/9d535a3d05a4cfd6bce4d033a1690b9c7d3b7bb9/source/index.ts#L498 When the onDidChange is registered multiple times (In main and renderer process separately in electron-store), all of the callbacks gets delayed by 5 seconds due to debouncing. Any specific...
https://github.com/sindresorhus/conf/blob/8329e55448df581fdae63fd7bf67c0ab077997a7/source/index.ts#L29-L36 It won't work for ESM. The problem is that it's inconvenient for every user to have to find the path to their package.json, load the JSON, parse it, and...
[](https://issuehunt.io/r/sindresorhus/conf/issues/85) I'm using a schema to create my settings, and I've been unable to have `conf` or `electron-config` use the defaults provided in the schema. I've included a reduced test...