https://github.com/corylr/zod-review
A review and showcase of Zod, the TypeScript-first schema and validation library.
https://github.com/corylr/zod-review
Last synced: 9 months ago
JSON representation
A review and showcase of Zod, the TypeScript-first schema and validation library.
- Host: GitHub
- URL: https://github.com/corylr/zod-review
- Owner: CoryLR
- License: mit
- Created: 2023-07-14T11:46:57.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-15T13:11:32.000Z (over 1 year ago)
- Last Synced: 2025-02-15T14:21:52.358Z (over 1 year ago)
- Language: TypeScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Package Review: Zod
A review and showcase of Zod, the TypeScript-first schema declaration and validation library.
* Install with `npm install zod`
* Documentation: [zod.dev](https://zod.dev)
## Overview of Zod
## Options and Configurations
I like the Options Object pattern when I want to enable others to configure the default behavior or settings of something, such as a function or class. Zod makes this easy by allowing you to define options and all of their default values using an Object Schema.
## Running Code Examples
* Ensure you have NPM installed
* Run $ `npm install`
* Run $ `npx ts-node zod-example-params-options-configs.ts`
* Swap out the filename for your desired example