conf
conf copied to clipboard
Simple config handling for your app or module
Hi! 👋 Firstly, thanks for your work on this project! 🙂 Today I used [patch-package](https://github.com/ds300/patch-package) to patch `[email protected]` for the project I'm working on. Here is the diff that solved...
We have been using conf with an electron* for a while with encryption enabled. Somehow it's happening to something like 1 out of 100-300 users that the config.json file gets...
Assume we have a schema; ``` schema: { foo: { bar: 'baz' }, bar: { baz: 'foo' }, baz: 'bar' } ``` I think it would be nice to get...
package.json ` "conf": "^7.0.1", ` _Example:_ ```js import Config from "conf" const config = new Config({ migrations: { "2.0.0": store => store.set("lastSeenVersion", "2.0.0") } }) config.store = {newData: "blabla"} //...
Let's say I have a config ```js { "items":[ {"name":"abc"},{"name":"dadd"}] } ``` How can I add an item to items array? Thanks
Currently if you have multiple processes using `conf` with the same storage location they can, and do, clobber each other's data. e.g. 1. p1 reads store 2. p2 reads store...
With this [fix](https://github.com/sindresorhus/conf/pull/136) landed, a new bug in `clear()` has become evident. As you know, settings `.store = ...` emits a `change` event. The code for clear() is currently [as...
It's great that `onDidChange` and `onDidAnyChange` return functions to destroy the watcher, but it would be great to have the listeners be internal state and then provide an `unsubscribe` method....
Currently the implementation expects that the schema provided is the `properties` of an object type. For most cases, this is probably fine, but I am finding it a little limiting...
This package depends on `ajv` which internally uses `new Function(..., sourcecode)`, equivalent to `eval()`. [This is documented in their readme](https://github.com/ajv-validator/ajv#ajv-and-content-security-policies-csp). The result of this is that any package bundling `conf`...