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 framework. Unit tests are written with the Jasmine framework and can be run in the HTML page test runner or command line via Grunt.