File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,22 @@ https://cdn.jsdelivr.net/npm/multiform-validator@2.6.0/+esm
25
25
26
26
``` html
27
27
<script type =" module" >
28
- import multiform - validator from " https://cdn.jsdelivr.net/npm/multiform-validator@2.6.0/+esm"
28
+ import mv from " https://cdn.jsdelivr.net/npm/multiform-validator@2.6.0/+esm"
29
29
</script >
30
30
```
31
31
32
32
### CJS:
33
33
34
+ jsDelivr:
35
+
36
+ ``` bash
37
+ https://cdn.jsdelivr.net/npm/multiform-validator@2.6.0/dist/index.min.js
38
+ ```
39
+
40
+ ``` html
41
+ <script src =" https://cdn.jsdelivr.net/npm/multiform-validator@2.6.0/dist/index.min.js" ></script >
42
+ ```
43
+
34
44
unpkg:
35
45
36
46
``` bash
@@ -61,6 +71,8 @@ using esm:
61
71
62
72
``` html
63
73
<script type =" module" >
74
+ // You can also import only the functions you need
75
+ // like: import { isEmail, cpfIsValid } from "https://cdn.jsdelivr.net/npm/multiform-validator@2.6.0/+esm";
64
76
import mv from " https://cdn.jsdelivr.net/npm/multiform-validator@2.6.0/+esm" ;
65
77
const emailResult = mv .isEmail (" 123456" );
66
78
const cpfResult = mv .cpfIsValid (" 123456" );
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const defaultErrorMsg: string[] = [
34
34
/**
35
35
* @param cnpj
36
36
* @param errorMsg optional
37
- * @example cpfIsValid ('72.501.263/0001-40');
37
+ * @example cnpjIsValid ('72.501.263/0001-40');
38
38
* @description This function returns four errors in the following order,
39
39
*
40
40
* If you want to use a default parameter, use null or leave Empty.
You can’t perform that action at this time.
0 commit comments