Getting Started
Installation
Section titled “Installation”deno add jsr:@paseri/paseribunx jsr add @paseri/paseripnpm add jsr:@paseri/paseriyarn add jsr:@paseri/paserinpx jsr add @paseri/paseriCreating your first schema
Section titled “Creating your first schema”import * as p from '@paseri/paseri';import { en } from '@paseri/paseri/locales';
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 { const messages = result.messages(en); throw new Error(`Parsing failed: ${messages}`);}