Password strength calculator written in JavaScript.
Scoring rule is based on The Password Meter.
Password strength value is from 0 to 100.
const getPasswordStrength = require('password-strength-calc');
console.log(`'Password' strength is ${getPasswordStrength('Password')}`);
// 'Password' strength is 26
<script src="pwd-str-calc.min.js"></script>
<script>
document.write("'Password' strength is " + getPasswordStrength('Password'));
</script>