Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.
/ potoroo Public archive
forked from ashleygwilliams/potoroo

password rule checker for npm

Notifications You must be signed in to change notification settings

npm/potoroo

This branch is 8 commits ahead of ashleygwilliams/potoroo:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e4ad350 · Dec 4, 2020

History

27 Commits
Sep 25, 2020
May 26, 2017
May 24, 2019
May 26, 2017
Dec 4, 2020
May 24, 2019
May 26, 2017
May 24, 2019
May 24, 2019
Dec 4, 2020
May 26, 2017

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

Languages

  • JavaScript 100.0%