faora-kai
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

faora-kai

npm Build status npm bundle size

npm type definitions node-current NPM

Experimental

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

Hero image for faora-kai

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

Related

Installation

This package is ESM only.

yarn add faora-kai

Readme

Keywords

Package Sidebar

Install

npm i faora-kai

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

37 kB

Total Files

27

Last publish

Collaborators

  • olih