pw-checker
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

pw-checker

What it does

  • It uses zxcvbn to check strength of password.
  • It subtracts the pwn count of HIBP password API.
  • It gives a rating of 0-4
    • 0-2 is bad
    • 3-4 is good

Usage

const pw = require('pw-checker')
 
// returns Promise<number> between 0-4
pw.check('123456').then(result => {
  console.log('My result is ' + result)
  // 0
})

Package Sidebar

Install

npm i pw-checker

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

1.82 kB

Total Files

4

Last publish

Collaborators

  • junderw