Forked from ansman/validate.js to make it compatible with Lotus Domino SSJS.
A shim/polyfill is needed to implement more current Array, Object and String functions that are needed for validate.js and will need to be included with an import to ensure load sequence.
Example: create another SSJS script with:
import ssjs_polyfill import validatejs
Validate.js provides a declarative way of validating javascript objects.
For documentation please see validatejs.org/.
For issues and feature requests visit the issue tracker.
git clone git@github.com:ansman/validate.js.git
cd validate.js
npm install
grunt build
This will build validate.min.js, validate.min.map and the docs folder.
You can run continuous testing that runs the tests on file changes by running
grunt watch
or simply grunt
.
If you want to just run the tests once you can do that by running grunt test
.
Before opening a pull request please make sure your changes follow the contribution guidelines.
If your site, library or application uses validate.js and would like to be shown here please feel free to email info@validatejs.org with the name and optionally a URL to the project and it will be added here.