1.0.0A function to create a password policy.
function (str: any): string:
A string if there is an error, undefined otherwise.
(number)
function (str: any): string:
A string if there is an error, undefined otherwise.
(number)
function (str: any): string:
A string if there is an error, undefined otherwise.
(string)
The characters to check for.
(number?)
The minimum characters required.
(string?)
function (str: any): string:
A string if there is an error, undefined otherwise.
(number?)
The minimum characters required.
function (str: any): string:
A string if there is an error, undefined otherwise.
(number?)
The minimum characters required.
function (str: any): string:
A string if there is an error, undefined otherwise.
(number?)
The minimum characters required.
function (str: any): string:
A string if there is an error, undefined otherwise.
(number?)
The minimum characters required.
function (str: any): string:
A string if there is an error, undefined otherwise.
function (str: any): string:
A string if there is an error, undefined otherwise.
function (str: any): string:
A string if there is an error, undefined otherwise.
Checks if some of the rules were followed, if a number is included at the end, it will check if at least that many rules were followed.
function (str: any): string:
A string if there is an error, undefined otherwise.
Inverts the result of a rule, allowing you to specify text.
function (str: any): string:
A string if there is an error, undefined otherwise.
Parses the string template to make it simple to create templates. "$" is the magic symbol that lets you reference the argument. Only works with template functions with less than 10 arguments, and doesn't let you traverse (input to the function should be strings).
(string)
function (...args: Array<string>): string