Simple config handling for your app or module with Standard Schema validation and extended JSON serialization
onDidChange, onDidAnyChange)pnpm install iso-conf
import { z } from 'zod/v4'
import { Conf } from 'iso-conf'
const schema = z.object({
foo: z.number().min(1).max(100).default(50),
bar: z.url().optional(),
})
const config = new Conf({ projectName: 'my-app', schema })
config.set('foo', 42)
console.log(config.get('foo'))
//=> 42
Any Standard Schema compliant library can be used for the schema option. Zod is shown above as an example only.
Check https://hugomrdias.github.io/iso-repo/modules/iso_conf.html
MIT © Hugo Dias