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