1.0.6 • Published 1 year ago
validate-password-check v1.0.6
validate-password-check
validate-password-check
Enforce stronger password and email for users by checking
Features password
- Lowercase verification
- Uppercase verification
- Special Characters verification
- Numbers verification
- Strings that are not allowed verification
Example of invalid email id
- mysite.ourearth.com @ is not present
- mysite@.com.my tld (Top Level domain) can not start with dot "."
- @you.me.net No character before @
- mysite123@gmail.b ".b" is not a valid tld
- mysite@.org.org tld can not start with dot "."
- .mysite@mysite.org an email should not be start with "."
- mysite()*@gmail.com here the regular expression only allows character, digit, underscore, and dash
- mysite..1234@yahoo.com double dots are not allowed
Installation
Install via NPM:
npm install validate-password-check
const {_emailValidation,_passwordValidation} = require('validate-password-check')
console.log(_emailvalidation("thisarayashadagcc@gmail.com"))
console.log(_passwordValidation("tkljgfkldm").output)
{ output: 'Success!', status: true }