Installation

To install the stable version:

npm install --save class-validator

Usage in the browser

If you want to use class-validator in the browser and you use Webpack then just import it into your project and Webpack will take care of the rest.

Next version

You can install the next version of class-validator via

npm install --save class-validator@next

Note: The next version can break anytime without notice. Do not use this in production.

Last updated