# 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.

Latest version **0.0.5** (published 2024-01-29) · 0 weekly downloads

## Install

```sh
npm install vld-ts
pnpm add vld-ts
yarn add vld-ts
bun add vld-ts
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2024-01-29 |
| First published | 2023-12-20 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 7.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | reve-node |

## Links

- npm: https://www.npmjs.com/package/vld-ts
- npm.io page: https://npm.io/package/vld-ts

## Recent versions

- 0.0.5 (latest) — 2024-01-29
- 0.0.4 — 2023-12-31
- 0.0.3 — 2023-12-31
- 0.0.2 — 2023-12-28
- 0.0.1 — 2023-12-20

## README

# `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:
```bash
# NPM
npm i vld-ts

# Yarn
yarn add vld-ts

# PNPM
pnpm add vld-ts

# Bun
bun add vld-ts
```

Code examples:
```ts
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
```

---
_Source: https://npm.io/package/vld-ts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
