psc-password-strength-calculator
TypeScript icon, indicating that this package has built-in type declarations

1.0.21 • Public • Published

Password-Strength-Calculator

Npm library, created to calculate strength of a password based on certain criterias. It gives a percentage score based on the selected criterias.

Features

  • [x] Dependency-free
  • [x] Lightweight
  • [x] Easily Configurable
  • [x] Support for typescript
Basic Usage
// import
const psc = require(`psc-password-strength-calculator`);

// psc(inputString, [conditions])
const score = psc("inputString", ['common', 'number']);

// value of score out of 100
console.log(score);

Conditions

  • The condtions is an array which is passed as a second argument.
  • Conditions can be: uppercase | lowercase | minLength | maxLength | common | dictionary
Command Description Type
inputString (Defaults to null) String
condition (Defaults to []) [lowercase, uppercase, number, minLength, maxLength, common, dictionary]

Contribution and Support

  • Completely open to new suggestions and contributions.

    Open for any follow up questions you guys may have. Happy Open Souce :)

Package Sidebar

Install

npm i psc-password-strength-calculator

Weekly Downloads

0

Version

1.0.21

License

MIT

Unpacked Size

94.6 kB

Total Files

8

Last publish

Collaborators

  • shra1dhar