conf
conf copied to clipboard
Simple config handling for your app or module
The `conf` library does `validate` after migration. `validate` https://github.com/sindresorhus/conf/blob/184fc278736dee34c44d4e7fa7e1b2a16ffdd5be/source/index.ts#L133 `migration` https://github.com/sindresorhus/conf/blob/184fc278736dee34c44d4e7fa7e1b2a16ffdd5be/source/index.ts#L150 This will `validate` past configuration files with the latest ajv schema, which is prone to type errors. It would...
# Questions * What causes the configuration file to be read? * What causes the configuration file to be written? * Where does the file exist? ## Current Documentation In...
```js import Conf from 'conf'; import packageJson from './package.json' assert {type: 'json'}; const config = new Conf({projectName: packageJson.name}); ```
Ajv is in strictmode which makes the usage of validation keywords impossible. Solution: Disable strictmode for ajv.