password rules for npm
npm install potoroo --save
const Password = require('potoroo')
const username = 'auser'
const password = '12345'
isSafe = Password(username, password).isSafe
// false
err = Password(username, password).err
// UnsafePassword.Common
- Common: if the password exists on the rockyou common passwords list
- Short: if a password is less than 7 characters
- Username: if the password matches the username