0.0.7 • Published 4 years ago

lvp.js v0.0.7

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

Lvp.js

Lvp.js is a data validation library.

  • Cross Js platform: lvp.js supports umd, cmd, and esm specifications.
  • Easy to use, ultra small size: The internal logic is simple to implement, there is no redundant design, trying to solve the most things with the least code.
  • Highly customizable and non-invasive: You can customize the validation rules arbitrarily, and there are no compatibility issues with any framework.

Installation

You can use npm

npm i lvp.js

or cnd

<script src="https://unpkg.com/lvp.js/lib/lvp.js"></script>

Documentation

You can find the Lvp.js documentation on the website.

Examples

This is a simple example of a single value check,for more detailed examples, please check here

var phone = "15555555555";
var isCNPhone = lvp.test({ value: phone, rules: "isCNPhone" });

Other

Lvp.js is MIT licensed.