@openaddresses/complexity

1.0.0

Complexity

new Complexity(opts: Object)
Parameters
opts (Object = {}) Options Object
Name Description
opts.uppercase number Number of required chars - A through Z
opts.lowercase number Number of required chars - a through z
opts.special number Number of required chars - ! @ # $ & *
opts.digit number Number of required chars - 0 through 9
opts.alphaNumeric number Number of required chars - a through Z / 0 through 9
opts.min number Minumum number of chars
opts.max number Maximum number of chars
opts.exact number Exact number of chars
Properties
opts (Object) : Options Object
regex (RegExp) : Build Regexp
Instance Members
check(password)
checkError(password)