1// joi-password-complexity is build over joi
2npm i joi-password-complexity
3const passwordComplexity = require("joi-password-complexity");
4const complexityOptions = {min: ,max: ,lowercase: ,
5 uppercase: , numeric: ,symbol: , requirementCount: };
6-> passwordComplexity().validate("<your_password>");
7or
8-> passwordComplexity(complexityOptions).validate("<your_password>");