Totally written sources and tests in TypeScript. Now it works not only on Node.js but also on browsers without crypto-browserify. Add "" (backslash) and "'" (single quote) as candidate symbols.
Add specifying a list of symbols to substitute defaults.
f0db9f29d
- respect list of symbols (Dillon Streator)c1946ea44
- feat: Add jsdoc to ts types and export Options interface (Eddie CooRo)
Add lowercase option to TypeScript file.
0eb0f498b
- Add lowercase property into Options (Sunjoong Kim)
Add option to disable lowercase characters in generated passwords.
960858c1c
- Document usage of lowercase, make lowercase optional, add tests (Edgardo Carreras)
Includes a performance improvement in the random number generator.
ea642553c
- Optimized fetch of random values using cache (Sebastien ROBERT)
Bug fix to randomNumber()
function that reduced entropy, resulting in a bias towards letters, generally.
21a12d0fd
- fixed randomNumber's frontwards bias (Starkteetje)
Release that includes TypeScript definitions.
ef2ded619
- typescript definition file (Carlos Gonzales)
Release with two new features.
One can now pass { 'exclude': 'abc' }
to exclude various characters from password
generation. This can be used to blacklist certain symbols, remove alike characters,
etc by giving a string with all the characters to be removed.
The options parameter is now optional — it is now unnecessary to pass an empty object when the defaults are desired.
38d4ae0b8
- addexclude
option to restrict passwords (Michael Kimpton)d16c95369
- Accept generate() when called without the options parameter (Alexandre Perrin)
Release with a new feature and various improvements.
strict
is now an option that can be passed to password generation. When this is true
,
each other option will be required — for example, if you generate a password with numbers,
lowercase letters, and uppercase letters, the password will have at least one number, one
lowercase letter, and one uppercase letter.
98f923c0c
- fix strict password generation (Brendan Ashworth)c69e2ef6b
- adds eslint (Brendan Ashworth)a798e846c
- add code coverage (Brendan Ashworth)aa5e13edf
- Adds strict password generation (Algimantas Krasauskas)
- Add
excludeSimilarCharacters
option