Altheia
A very simple async data validator, very fast and customizable, inspired by Joi .
await Alt
Introduction
After searching for a long time a simple data validator that allow async validation, I decided to implement one. Heavily inspired from Joi, it aim at being very lightweight, simple to use and obvioulsy allow us to check anything from standard schema to very custom ones.
It aim to be used in models Validation (i.e: for API)
Install
$ npm install altheia
Example
const Alt = ;// or: import Alt from 'altheia' Altlang'string.min' `This is too short I think`}; const hasError = await options required: true unknown: falsebody login: 'leela' email: 'captain@planetexpress.earth' eyes: 1 date: '2015-01-04T17:35:22Z'; console; // false
Documentation
You can find the documentation here
Contributing
Every contribution or request will be gladly accepted in this issues section.