Skip to content

ashleygwilliams/potoroo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

potoroo

password rules for npm

Build Status

potoroo

installation

npm install potoroo --save

usage

const Password = require('potoroo')

const username = 'auser'
const password = '12345'

isSafe = Password(username, password).isSafe
// false

err = Password(username, password).err
// UnsafePassword.Common

rules

  • 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

About

password rule checker for npm

Resources

Stars

Watchers

Forks

Packages

No packages published