validity - Validation framework
An extendible validation framework for validating the properties of an object. Also contains a number of standard validators.
npm install validity
Validity comes with some very basic example validators (required, email, integer, length and a few others). No more validators
will be added to this repo (in fact some of the more obscure ones may be removed in future). They should be built as individual
npm modules (with their own tests) so that applications can pick and choose which they use. Validators should be added to npm
repo with the
validity- prefix so that people can find them with a quick npm search
(or via the cli:
npm search validity-).
The are a few validators that currently exist and can be used for reference:
Licenced under the New BSD License