-
Notifications
You must be signed in to change notification settings - Fork 0
Generators
Trafford Fewster edited this page Nov 13, 2023
·
1 revision
This package uses generators to generate and validate codes, the base generator can be found here this can then be easily expanded to support your custom needs or be constructed with different settings.
When constructing the generator you can set 6 augments they are below:
Default: true Whether the code should be numbers only, if false it will be alpha numeric.
Default: 6 The length the code needs to be.
Default: false Whether to allow palindromes or not.
Default: 3 The maximum repeating characters.
Default: 4 The maximum sequence length.
Default: 3 The amount of unique characters needed in the code.