Module: simplePass

This file contains the main 'simplePass' function. This file also is used to export any other function methods that are attached to the main function. Other programs that wish to use simplePass should import this file into there program and call various functions/methods found inside of this file.

Source:

Methods

(inner) simplePass(modifieropt, cFigopt) → {string|strengthCheckedPassword|Promise.<strengthCheckedPassword>}

Main program function. Returns either a random strin or a strength check password object that contains the a random string with additional information. If compression is configured, simplePass will return a Promise containing your strength check password object.

Parameters:
NameTypeAttributesDescription
modifierpasswordModifier | FormData<optional>

The available password modifiers that can be used to create the password. Defaults to config.defaultPasswordModifier.

cFigmodule:config<optional>

The configuration settings for the program.

Source:
Requires:
Throws:

Will throw an Error if the modifier is null, undefined or not a JavaScript Object.

Type
errors
Returns:

The generated password or strength checked password object.

Type
string | strengthCheckedPassword | Promise.<strengthCheckedPassword>