npm.io
0.1.4 • Published 12 years ago

strength

Licence
MIT
Version
0.1.4
Deps
0
Vulns
0
Weekly
0
Stars
6

Estimate password strength in javascript

On a scale of 0 = weak to 5.0 = strong.

$  npm install strength --save

NPM version

No dependencies.

Usage

var strength = require('strength');

var password = 'password';

var howStrong = strength(password);

console.log(howStrong); // 0

Password criteria

  • automatically fails 10,000 most common passwords
  • letters, case, numbers, special characters
  • length
  • repitition

Tests

npm test

License

MIT

Author

Jeff Parrish @ruffrey

Keywords