password-ruler-addons
v0.1.0
Published
A wrapper around common-password-rules for using it within PasswordRuler
Downloads
2
Maintainers
Readme
PasswordRuler Add-ons
It is a wrapper around common-password-rules that provides PasswordRuler compatible validators.
Install
npm install password-ruler-addons
Usage
const PasswordRuler = require('password-ruler');
const { containsLowerCase, excludesBirthDate } = require('password-ruler-addons');
containsLowerCase(); // => { validate: [Function], weight: 1 }
new PasswordRuler({
lowerCase: containsLowerCase(2, 3),
noBirthDate: excludesBirthDate()
})
API
See common-password-rules for all possible methods.