passwordmeter
v1.3.5
Published
Password security checker function based on http://www.passwordmeter.com/
Downloads
2,402
Maintainers
Readme
passwordmeter
Password security checker function based on http://www.passwordmeter.com/
Unobtrusive and unit-tested.
Installation
This package is distributed via npm:
npm install passwordmeter
or Bower:
bower install passwordmeter
Usage
Require
var passwordMeter = require('passwordmeter');
//Function returns result from 0 to 100 and -1 for empty password.
//Second param is minimum password length. 8 by default
var score = passwordMeter.checkPass('pA$$w0rD', 8);
Bower
<script src="bower_components/passwordmeter/dist/index.umd.min.js"></script>
<script>
var score = passwordMeter.checkPass('pA$$w0rD', 8);
</script>