File tree 1 file changed +10
-8
lines changed
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Password Checker
2
2
3
- A Deno module to test if a password/string matches the preset criteria.
3
+ A Deno🦕 module to test if a password/string matches the preset criteria.
4
4
5
5
## Installation
6
6
7
- ` import { checkPassword } from "https://deno.land/x/password-checker/mods.ts"; `
7
+ ``` typescript
8
+ import { checkPassword } from " https://deno.land/x/password-checker/mods.ts" ;
9
+ ```
8
10
9
11
## Parameters
10
12
11
13
### Mandatory Parameters:
12
14
13
- - password: string
15
+ - ` password: string `
14
16
15
17
### Optional Parameters:
16
18
17
- - minLen: number - To check the password against a minimum length. Defaults to 0
19
+ - ` minLen: number ` - To check the password against a minimum length. Defaults to 0
18
20
which disables the check.
19
- - maxLen: number - To check the password against a maximum length. Defaults to 0
21
+ - ` maxLen: number ` - To check the password against a maximum length. Defaults to 0
20
22
which disables the check.
21
- - containsNum: boolean - To check if the password contains any numbers. Defaults
23
+ - ` containsNum: boolean ` - To check if the password contains any numbers. Defaults
22
24
to true and enables the check.
23
- - containsSpecialChar: boolean - To check if the password contains any special
25
+ - ` containsSpecialChar: boolean ` - To check if the password contains any special
24
26
characters. Defaults to true and enables the check.
25
- - containsAlphabet: boolean - To check if the password contains any alphabets.
27
+ - ` containsAlphabet: boolean ` - To check if the password contains any alphabets.
26
28
Defaults to true and enables the check.
27
29
28
30
## Usage
You can’t perform that action at this time.
0 commit comments