1.0.6 • Published 2 years ago

@spookyhub/validate v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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@domain.com true
    • email@domain.com, true
    • email@domain.com, true
    • email@domain.com, email@domain.com, email@domain.com, true
    • email@domain.com false
    • email@domain.com. email@domain.com., false
  • validate.email(input) to validate an email

    • email@domain.com true
    • email.test.com false
  • validate.password(input) to check if a password is bigger than 8, contains at least 1 capital letter and 1 digit

    • Password123 true
    • password123 false
    • pass false
    • Pass false
    • pass123123 false
  • validate.username(input) to validate a username, username can contain numbers, letters, points and "-"
    • username true
    • username123 true
    • username.123_ true
    • username%*#@^!#* false
  • validate.youtubeVideoUrl to validate if a given url is a youtube video link
1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago