@rplan/password-strength
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

Allex Responsible: #A-Team Repo Status GitHub Actions Node.js TypeScript

Responsible: #A-Team

Password strength

A set of rules to check the strength of a password.

Rules for strong password

  • minimum length of 8 characters
  • at least one number

How to use it

yarn add @rplan/password-strength

It returns true if the password fulfills the required rules or false if it violates one or more rules.

import checkPasswordStrength from '@rplan/password-strength'

const weakPassword = 'password'
checkPasswordStrength(password) // returns false

const strongPassword = 'SomeStrongPasswordWithNumbers123'
checkPasswordStrength(strongPassword) // returns true

Readme

Keywords

none

Package Sidebar

Install

npm i @rplan/password-strength

Weekly Downloads

181

Version

0.3.1

License

UNLICENSED

Unpacked Size

5.59 kB

Total Files

9

Last publish

Collaborators

  • muhammadfaizan
  • siavash.sardari
  • nomanurrehman
  • rplan-ci
  • ady.shehadeh
  • daniel-0815
  • dtimmreck
  • hweber.actano
  • mkronschnabl.actano
  • mpuls
  • dschmidt_actano
  • mnicorici
  • actano-resources-hl
  • wgrall
  • nehap09
  • msagir
  • sevinjguluzade
  • mhnpd
  • tonirucks