UNPKG

jet-validators

Version:

Fast, zero-dependency TypeScript validators and utilities for runtime checks, parsing, and lightweight object schema validation.

19 lines (13 loc) 1.35 kB
# jet-validators ✈️ [![npm](https://img.shields.io/npm/v/jet-validators?label=npm&color=0ea5e9)](https://www.npmjs.com/package/jet-validators) [![downloads](https://img.shields.io/npm/dm/jet-validators?label=downloads&color=38bdf8)](https://www.npmjs.com/package/jet-validators) [![types](https://img.shields.io/npm/types/jet-validators?label=types&color=22c55e)](https://www.npmjs.com/package/jet-validators) [![bundle size](https://img.shields.io/bundlephobia/minzip/jet-validators?label=bundle&color=0f172a)](https://bundlephobia.com/package/jet-validators) [![license](https://img.shields.io/npm/l/jet-validators?label=license&color=334155)](LICENSE) > A comprehensive collection of TypeScript validator functions and utilities for common compile and runtime checks. <p align="center"> <img src="https://raw.githubusercontent.com/seanpmaxwell/jet-validators/master/ide-snippet-baked.png" alt="IDE snippet" width="600" /> </p> jet-validator's `parseObject` function is "JIT optimized" and one of the fastest schema validation tools out there not requiring a compilation step. Check out these benchmarks <a href="https://moltar.github.io/typescript-runtime-type-benchmarks">here</a>. <br/><br/> Please refer to the official <a href="https://github.com/seanpmaxwell/jet-validators">github repo</a> for the most up-to-date documentation.