Skip to main content
Version: 5.x

Builtin enforce plugins

In order to save up on bundle size, enforce ships with a minimal set of rules. These rules are the most common ones, and are used in most projects. Some rules, such as isEmail, or other schema rules may be useful but less common. These are supported as plugins and can be consumed directly from the vest/enforce directory.

The following documents in this section describe the builtin plugins that are included by default and are ready to use.

To consume any of these plugins, simply import them in your project:

import 'vest/enforce/email';