package
Natural language detection for Joi validation.
npm install joi-tinyldGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 2 packages.
11.6 MB
Includes dependencies.
Natural language detection for Joi validation.
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.