node.js port of jquery.complexify.js
npm install node-complexify
As a module:
var complexify = require('node-complexify');
complexify.evalPasswordComplexity("MadHatter", function(err, valid, complexity) {
console.log(complexity);
console.log(valid);
});
As an executable:
complexify "MadHatter" || echo "Password not complex enough"