Getting Started
Installation
deno add jsr:@vbudovski/paseri
bunx jsr add @vbudovski/paseri
pnpm dlx jsr add @vbudovski/paseri
yarn dlx jsr add @vbudovski/paseri
npx jsr add @vbudovski/paseri
Creating your first schema
import * as p from '@vbudovski/paseri';
const schema = p.object({ hello: p.string(),});
const data = { hello: 'world' };const result = schema.safeParse(data);if (result.ok) { console.log(`Hello ${result.value.hello}!`);} else { throw new Error('issues parsing data.');}