validatorjs is a data validation library in JavaScript for the browser and for Node.js as an NPM module. The library exposes the Validator constructor function. It was inspired by the Validator class in the Laravel PHP MVC framework. Unit tests are written with the Jasmine framework and can be run in the test runner or via Grunt.