npm.io
1.0.3 • Published 8 years ago

lovecheck

Licence
ISC
Version
1.0.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0

lovecheck.js

a validators for data

Installation and Usage

installation:

npm install lovecheck

usage:

const oc = require("lovecheck");

or

import oc from "lovecheck";

ps: your operating environment need to supports es6 and commonjs.
a example:

import oc from "lovecheck";
oc.isEmail("1164310634@qq.com"); // true;

validator list

function describe
isMobile(str) check mobile
isPassword(str, min ,max) min is password's minlength
max is password's maxlength
isName(str, min , max) min is name's minlength
max is name's maxlength
isPostalcode(str) postal must be six nubmers
isEmail(str) check Email

continuously updated...