password-ruler-addons

0.1.0 • Public • Published

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/

Package Sidebar

Install

npm i password-ruler-addons

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • tameraydin