@pesto-io/pesto-zod
v0.0.1-alpha-commit-2619f0aa9c29489b3584a8ee2099efd4333cbcc3
Published
Pesto module to intantiate zod schema from Typescript source code as string.
Downloads
2
Maintainers
Readme
Pesto Zod
The pesto-zod
npm package contains zod
related utilities that the pesto app uses.
One of the most important, is the ZodSchemaParser
, which is able to read some source code providd as a simple string, and to instantiate a zod schema.
How to Use
- first, install the package:
npm i @pesto-io/pesto-zod
# pnpm add @pesto-io/pesto-zod
- Then, in your code, you can:
import { ZodSchemaParser } from "@pesto-io/pesto-zod"
Contribute
Git clone the source, and:
- Install dependencies:
pnpm i
Generate the docs
pnpm run gen:api-docs
The Astro docs (WIP)
pnpm run build:docs:astro
# pnpm run dev:docs:astro