Calculate the information entropy of a string
As pointed out by other sources, string entropy is propably the most reliable way of scoring a password. This module implements the algorithm described here, using a variable sized alphabet based on the actual contents of the string.
A number of builds are available in the
dist folder. Checkout the demo for an example of this module
implemented as a bootstrap plugin.
var entropy = ;console;// outputs 132console;// outputs 66