Skip to content

Variable: strongPassword

ts
const strongPassword: Validator<string>;

Strong password validation / 强密码校验

Example

ts
strongPassword('Abcdef1!') // => { isValid: true, message: undefined }
strongPassword('weakpass') // => { isValid: false, message: 'Password is not strong enough / 密码强度不足' }

Since

1.0.0

Released under the MIT License.