Methods
generatePassword(num) → {Object}
- Description:
Generate the password(s) and stats
- Source:
Parameters:
Name | Type | Description |
---|---|---|
num |
number | number of passwords to generate |
Returns:
- contains the passwords and the stats
- Type
- Object
getPreset() → {Presets}
- Description:
Get the current preset
- Source:
Returns:
the current preset
- Type
- Presets
getPresets() → {array}
- Description:
Get all available presets
- Source:
Returns:
keys - names of the Presets
- Type
- array
password() → {string}
- Description:
Return a password that adheres to the chosen preset
- Source:
Returns:
- Type
- string
passwords(num) → {array}
- Description:
Generate the requested number of passwords
- Source:
Parameters:
Name | Type | Description |
---|---|---|
num |
number | the number of passwords requested |
Returns:
- the array with num passwords
- Type
- array
setCustomPreset(settings)
- Description:
Create a CUSTOM preset and set the default preset to it.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
settings |
Object | object containing the settings |
setPreset(preset)
- Description:
Set a different preset to work with
- Source:
Parameters:
Name | Type | Description |
---|---|---|
preset |
any |