Skip to content

stevenvachon/joi-tinyld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

joi-tinyld NPM Version Build Status Coverage Status

Natural language detection for Joi validation.

Usage

import JoiBase from 'joi';
import JoiTinyld from 'joi-tinyld';

const Joi = JoiBase.extend(JoiTinyld);

Joi.string().language('en');
Joi.string().language('en', 'fr');

For the "light" version:

import JoiTinyld from 'joi-tinyld/light';

For the "heavy" version:

import JoiTinyld from 'joi-tinyld/heavy';

Check the tinyld docs for the differences. You might have to dig a little.

About

Natural language detection for Joi validation.

Resources

License

Stars

Watchers

Forks