0.0.5 • Published 3 months ago

vld-ts v0.0.5

Weekly downloads
-
License
-
Repository
-
Last release
3 months ago

vld-ts

A fast, lightweight validation library for every enviroment. This library implements a subset of the JSON Schema Draft 7 with additional properties to improve performance.

Usage

Install vld-ts using your favorite package manager:

# NPM
npm i vld-ts

# Yarn
yarn add vld-ts

# PNPM
pnpm add vld-ts

# Bun
bun add vld-ts

Code examples:

import { t, vld } from 'vld-ts';

// Use the schema builder
const Person = t.obj({
    name: t.str,
    age: t.num
});

// Compile the schema
const isPerson = vld(Person);

console.log(isPerson({ name: 'Reve', age: 15 })); // true
0.0.5

3 months ago

0.0.3

4 months ago

0.0.4

4 months ago

0.0.2

4 months ago

0.0.1

5 months ago