Skip to the content.

Altheia Documentation

Online version: github.io/altheia/

🤓 Why?

After searching for a long time a simple data validator that allow async validation, I decided to implement one. Heavily inspired from Joi, it aims at being very lightweight, simple to use and allow checking anything from a standard schema to very custom ones.

The goal of this library is to validate json – for example in express middleware – and complex javascript object.

Install

npm install altheia-async-data-validator
yarn add altheia-async-data-validator

Use

One simple step, import the library

import alt from 'altheia-async-data-validator';
// or
const alt = require('altheia-async-data-validator').default;

Typescript definitions are builtin the library, no need to install another package.

Core Concepts

API

To see all validators and main api => API

Validators:

Contribute

See Contributing