@ucdjs/schemas
v0.3.0
Published
[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href]
Downloads
189
Readme
@ucdjs/schemas
Zod schemas that define the shared data contracts across the UCD.js monorepo - API responses, store manifests, lockfiles, and Unicode metadata.
Installation
npm install @ucdjs/schemasUsage
[!NOTE] All schemas are exported from the package root.
import { LockfileSchema, UnicodeVersionSchema } from "@ucdjs/schemas";
// Parse a Unicode version object
const version = UnicodeVersionSchema.parse(rawVersion);
// Safely parse a lockfile
const result = LockfileSchema.safeParse(rawLockfile);
if (result.success) {
console.log(result.data.versions);
}Schema Families
[!NOTE] Full documentation is available at docs.ucdjs.dev/api-reference/schemas/schemas.
📄 License
Published under MIT License.
