
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
vue-validity
Advanced tools
Simple, powerful and flexible model-based Vue.js validation library
A simple, powerful and flexible validation library for Vue.js 2.0.
npm install --save vue-validity
import Vue from 'vue'
import Validity from 'vue-validity'
// Optionally provide configuration options.
Vue.use(Validity, {})
For each value you want to validate, you have to create a key inside validations options.
export default {
data () {
return {
name: ''
}
},
validations: {
name: ['required', 'minlength:4']
}
}
This will result in the following validation object:
$v: {
"name": {
"required": {
"$value": false,
"$message": "name is required."
},
"minlength": {
"$value": true,
"$message": "name should be at least 4 chars."
},
"$valid": false,
"$dirty": false,
"$error": false,
"$errors": []
},
"$valid": false,
"$dirty": false,
"$error": false,
"$errors": []
}
Checkout the docs for more examples: https://jrenton.github.io/vue-validity/
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
Original vuelidate work Copyright (c) 2016 Paweł Grabarz & Damian Dulisz
FAQs
Simple, powerful and flexible model-based Vue.js validation library
The npm package vue-validity receives a total of 0 weekly downloads. As such, vue-validity popularity was classified as not popular.
We found that vue-validity demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.