validate-password-js
v1.0.0
Published
- minimum of 8 characters - lower case letter - upper case letter - numeric value - special character
Downloads
2
Readme
Password Validator
Default Requirenments
- minimum of 8 characters
- lower case letter
- upper case letter
- numeric value
- special character
How to use
const validatePassword = require('validate-password')
const password = 'P455w0rd!'
console.log(validatePassword(password)) /** returns Obj
{
valid: true,
test: {
length: true,
upper_case: true,
lower_case: true,
number_value: true,
special_char: true,
}
}
*/