conf-with-zod
v2.0.1
Published
Simple config handling for your app or module
Maintainers
Readme
conf-with-zod
conf package with zod as json validator
Install
npm install conf-with-zodUsage
This package works almost identical that original conf, with these diferences:
- In the property schema you NEED to pass a zod object validator like this:
const zodSchema = z.object({
foo: z.string().optional().default("Bar")
})
const store = new Conf({
schema: zodSchema
})Credits
All rigths reserved to sindresorhus, owner of the original conf.
