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
Markdown
# jet-validators ✈️
[](https://www.npmjs.com/package/jet-validators)
[](https://www.npmjs.com/package/jet-validators)
[](https://www.npmjs.com/package/jet-validators)
[](https://bundlephobia.com/package/jet-validators)
[](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.