tan-validator
v1.0.7
Published
String and number validator.
Downloads
6
Readme
tan-validator
This is a small validator that could be used in node and in browser with browserify.
install
npm install tan-validator
Usage
var tanValidator = require("tan-validator")
tanValidator.isEmail("[email protected]") // true
tanValidator.isEmail("this@ismyemail.") // false
Methods
- isEmail(str)
- equals(str|num, str|num)
- isUrl(str)
- isAlphaSwedish(str)
- isAlphaDash(str)
- isNumeric(str)
- isNumber(num)
- isInt(num)
- isLowercase(str)
- isUppercase(str)
- isString(str)
- isLength(str, min, [,max])
- isMin(num, min)
- isMax(num, max)
- isDate(str)
- isNumberDash(str)
- testRegex(str, regex)
License
MIT