joi-tinyld
v1.0.0
Published
Natural language detection for Joi validation.
Maintainers
Readme
joi-tinyld

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.
