@spookyhub/validate
v1.0.6
Published
A javascript module to validate different types of input
Downloads
3
Readme
validate
A javascript module to validate different types of input
NPM
to install this module visit the npm page of @spookyhub/validate
Functions
validate.emailList(input)
to validate a list of emails seperated by a coma ,[email protected]
true[email protected],
true[email protected],
true[email protected], [email protected], [email protected],
true[email protected]
false[email protected]. [email protected].,
false
validate.email(input)
to validate an email[email protected]
trueemail.test.com
false
validate.password(input)
to check if a password is bigger than 8, contains at least 1 capital letter and 1 digitPassword123
truepassword123
falsepass
falsePass
falsepass123123
false
validate.username(input)
to validate a username, username can contain numbers, letters, points and "-"username
trueusername123
trueusername.123_
trueusername%*#@^!#*
false
validate.youtubeVideoUrl
to validate if a given url is a youtube video link