Simple Validator for ES2015
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
validators
.editorconfig
.eslintrc
.gitignore
README.md
Vage.js
package.json
yarn.lock

README.md

Vage

Simple validator

Usage

const vage = new Vage()
vage.maxLength(4)
  .minLength(1, {message: 'custom message'})
if (!vage.validate(value)) {
  console.log(vage.messages)
}

Demo

Vage-demo