No description, website, or topics provided.
JavaScript
Switch branches/tags
Nothing to show
Pull request Compare This branch is 24 commits behind serby:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
validators
.gitignore
.jshintignore
.jshintrc
.travis.yml
README.md
package.json
property-validator.js
property-validators.js

README.md

validity - Validation framework

NPM Details

build status

An extendible validation framework for validating the properties of an object. Also contains a number of standard validators.

Installation

npm install validity

Run Tests

npm test

Validators

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:

Credits

Paul Serby follow me on twitter @serby

Licence

Licenced under the New BSD License