📜  在 nodejs 中验证密码 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:15.948000             🧑  作者: Mango

代码示例1
// 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("");
or
-> passwordComplexity(complexityOptions).validate("");