1.0.3 • Published 6 years ago

lovecheck v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

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

functiondescribe
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...

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago