node-complexify

node.js wrapper for jquery.complexify.js

node-complexify

node.js port of jquery.complexify.js

npm install node-complexify

As a module:

var complexify = require('node-complexify');
 
complexify.evalPasswordComplexity("MadHatter", function(errvalidcomplexity) {
  console.log(complexity);
  console.log(valid);
});

As an executable:

complexify "MadHatter" || echo "Password not complex enough"