node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

node-complexify

node-complexify

node.js port of jquery.complexify.js

Installing

npm install node-complexify

Usage

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"