Gathering detailed insights and metrics for vuelidate
Gathering detailed insights and metrics for vuelidate
Gathering detailed insights and metrics for vuelidate
Gathering detailed insights and metrics for vuelidate
Simple, lightweight model-based validation for Vue.js
npm install vuelidate
Typescript
Module System
Min. Node Version
Node Version
NPM Version
98.7
Supply Chain
99.1
Quality
78.2
Maintenance
100
Vulnerability
100
License
@vuelidate/core@2.0.1
Updated on Mar 26, 2023
@vuelidate/core@2.0.0
Updated on Sep 25, 2022
@vuelidate/validators@2.0.0-alpha.31
Updated on Jul 23, 2022
@vuelidate/core@2.0.0-alpha.43
Updated on Jul 23, 2022
@vuelidate/core@2.0.0-alpha.41
Updated on May 01, 2022
@vuelidate/validators@2.0.0-alpha.29
Updated on May 01, 2022
JavaScript (64.94%)
Vue (12.52%)
Sass (10.92%)
Pug (9.6%)
SCSS (1.35%)
HTML (0.66%)
Total Downloads
61,666,941
Last Day
5,230
Last Week
148,227
Last Month
638,720
Last Year
8,492,900
MIT License
6,907 Stars
671 Commits
490 Forks
77 Watchers
6 Branches
84 Contributors
Updated on Jul 06, 2025
Minified
Minified + Gzipped
Latest Version
0.7.7
Package Id
vuelidate@0.7.7
Unpacked Size
101.12 kB
Size
24.23 kB
File Count
61
NPM Version
6.14.15
Node Version
14.18.1
Published on
Dec 08, 2021
Cumulative downloads
Total Downloads
Last Day
-18%
5,230
Compared to previous day
Last Week
-8.8%
148,227
Compared to previous week
Last Month
-0.6%
638,720
Compared to previous month
Last Year
-19.4%
8,492,900
Compared to previous year
59
Simple, lightweight model-based validation for Vue.js
Vue 3 support is almost here with the Vuelidate 2 rewrite. Check out the next branch to see the latest progress.
1npm install vuelidate --save
You can import the library and use as a Vue plugin to enable the functionality globally on all components containing validation configuration.
1import Vue from 'vue' 2import Vuelidate from 'vuelidate' 3Vue.use(Vuelidate)
Alternatively it is possible to import a mixin directly to components in which it will be used.
1import { validationMixin } from 'vuelidate' 2 3var Component = Vue.extend({ 4 mixins: [validationMixin], 5 validations: { ... } 6})
The browser-ready bundle is also provided in the package.
1<script src="vuelidate/dist/vuelidate.min.js"></script> 2<!-- The builtin validators is added by adding the following line. --> 3<script src="vuelidate/dist/validators.min.js"></script>
1Vue.use(window.vuelidate.default)
For each value you want to validate, you have to create a key inside validations options. You can specify when input becomes dirty by using appropriate event on your input box.
1import { required, minLength, between } from 'vuelidate/lib/validators' 2 3export default { 4 data () { 5 return { 6 name: '', 7 age: 0 8 } 9 }, 10 validations: { 11 name: { 12 required, 13 minLength: minLength(4) 14 }, 15 age: { 16 between: between(20, 30) 17 } 18 } 19}
This will result in a validation object:
1$v: { 2 name: { 3 "required": false, 4 "minLength": false, 5 "$invalid": true, 6 "$dirty": false, 7 "$error": false, 8 "$pending": false 9 }, 10 age: { 11 "between": false 12 "$invalid": true, 13 "$dirty": false, 14 "$error": false, 15 "$pending": false 16 } 17}
Checkout the docs for more examples: https://vuelidate.js.org/
1# install dependencies 2npm install 3 4# serve with hot reload at localhost:8080 5npm run dev 6 7# create UMD bundle. 8npm run build 9 10# Create docs inside /gh-pages ready to be published 11npm run docs 12 13# run unit tests 14npm run unit 15 16# run all tests 17npm test
For detailed explanation on how things work, checkout the guide and docs for vue-loader.
Damian Dulisz |
Natalia Tepluhina |
Dobromir Hristov |
Marina Mosti |
Here we honor past contributors who have been a major part on this project.
No vulnerabilities found.
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 13/28 approved changesets -- score normalized to 4
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
64 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More