Installation
Prerequisites
- Node.js >= 20
- A Langium-based project with a grammar you want to derive Zod schemas from
Install the package
bash
pnpm add langium-zodOr with npm / yarn:
bash
npm install langium-zod
yarn add langium-zodVerify
ts
import { generateZodSchemas } from 'langium-zod';
console.log(typeof generateZodSchemas); // 'function'See Usage for the end-to-end workflow.