joi-zxcvbn password strength check
Validate Password complexity with Joi and zxcvbn
Usage
npm install --save joi-zxcvbn
or
yarn add joi-zxcvbn
var joiZxcvbn = var PlainJoi = ;var Joi = PlainJoi; var minimumScore = 3; // default - must in 0...4var userInputs = 'janedoe' 'jane@doe.com'; // optional & best practice Joi
Have a look at the tests.js
to see how to parse its results. feedback, score, calc_time
are
passed trough. calc_time
is renamed to calcTime
just because.
For configuration options, see dropbox/zxcvbn