The Zod helper library, because sometimes you need a little help from a Kryptonian
Helper functions for zod, the typeScript-first schema validation with static type inference
Highlights:
- Simplify error handling with zod by using a custom formatter
- Protect sensitive data from leaking in error messages by using a privacy-aware formatter
- Create a dictionary of string constraints based on the Fibonacci sequence
A few examples of commands:
Parse an object using Zod validation:
const result = safeParse<TestSchema>(content, {schema, formatting:
'human-friendly'});
Declare a string field from 1 to 10 characters:
stringFields.string1To10
- Code Maintenance 🔧
- Code Of Conduct
- Api for faora-kai
- Contributing 👥 🚧
- Diagram for the code base 📐
- Vocabulary used in the code base 📖
- Architectural Decision Records 📝
- Contributors :busts_in_silhouette:
- Dependencies
- Glossary :book:
- Software engineering principles :gem:
- Overview of Flarebyte.com ecosystem :factory:
- Npm dependencies
This package is ESM only.
yarn add faora-kai