node js validate password code example
Example: validate password in nodejs
// joi-password-complexity is build over joi
npm i joi-password-complexity
const passwordComplexity = require("joi-password-complexity");
const complexityOptions = {min: ,max: ,lowercase: ,
uppercase: , numeric: ,symbol: , requirementCount: };
-> passwordComplexity().validate("<your_password>");
or
-> passwordComplexity(complexityOptions).validate("<your_password>");