0.1.0 • Published 2 years ago
faora-kai v0.1.0
faora-kai
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
Documentation and links
- Code Maintenance :wrench:
- Code Of Conduct
- Api for faora-kai
- Contributing :busts_in_silhouette: :construction:
- Diagram for the code base :triangular_ruler:
- Vocabulary used in the code base :book:
- Architectural Decision Records :memo:
- Contributors :busts_in_silhouette:
- Dependencies
- Glossary :book:
- Software engineering principles :gem:
- Overview of Flarebyte.com ecosystem :factory:
- Npm dependencies
Related
Installation
This package is ESM only.
yarn add faora-kai
0.1.0
2 years ago