README
https://xkpasswd.net
XKCD-based Password Generator - Based on XKPasswd - Bart BusschotsGenerates a password based on parameters.
Install
To install in your projects:
npm install --save xkcd-pass-gen
Usage
Options
Name | Type | Optional | Default | Description |
---|---|---|---|---|
numPasswords | int | True | 1 | Number of passwords to be generated |
numWords | int | True | 2 | Number of words in each generated password |
minLength | int | True | 4 | Minimum length of word generated |
maxLength | int | True | 4 | Maximum length of word generated |
sepType | string | True | 'none' | none [none], specified [spec](specific character specified in .sep), random character [rand](random character from array of characters given in .sep) |
sep | string/array | True | '-' | Character(s) to be used as separators. Either single character or array depending on separator type |
wCase | string | True | 'alt' | Word case. Options: Alternating [alt], First Letter [first], lowercase [lower], uppercase [upper], capitalize every letter except the first [except] |
padDigBe | int | True | 0 | Number of digits to add at the front |
padDigAf | int | True | 2 | Number of digits to add at the end |
padsType | int | True | 'none' | Padding to end symbol type. Options: none [none], specified [spec], random symbol [rand] |
padsLoc | int | True | 'end' | Padding symbol location. Will only be used if padsType is set to something other than none. Options: beginning [beg], end [end], both [both] |
padsAmount | int | True | 2 | Number of symbol characters to be added. Will only be used if padsType is set to something other than none. |
pads | int | True | ' |