0.1.0 • Published 8 years ago

password-ruler-addons v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

PasswordRuler Add-ons Build Status Coverage Status

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.

License

MIT http://tameraydin.mit-license.org/