@@ -15,65 +15,61 @@ Feel free to find bugs and report them to me. Your feedback is highly appreciate
15
15
16
16
## CDNs
17
17
18
- ### ESM :
18
+ ### Default :
19
19
20
20
jsDelivr:
21
21
22
22
``` bash
23
- https://cdn.jsdelivr.net/npm/multiform-validator@2.6.0/+esm
23
+ https://cdn.jsdelivr.net/npm/multiform-validator@2.6.1/dist/index.min.js
24
24
```
25
25
26
26
``` html
27
- <script type =" module" >
28
- import mv from " https://cdn.jsdelivr.net/npm/multiform-validator@2.6.0/+esm"
29
- </script >
27
+ <script src =" https://cdn.jsdelivr.net/npm/multiform-validator@2.6.1/dist/index.min.js" ></script >
30
28
```
31
29
32
- ### CJS:
33
-
34
- jsDelivr:
30
+ unpkg:
35
31
36
32
``` bash
37
- https://cdn.jsdelivr.net/npm/ multiform-validator@2.6.0 /dist/index.min .js
33
+ https://unpkg.com/ multiform-validator@2.6.1 /dist/index.js
38
34
```
39
35
40
36
``` html
41
- <script src =" https://cdn.jsdelivr.net/npm/ multiform-validator@2.6.0 /dist/index.min .js" ></script >
37
+ <script src =" https://unpkg.com/ multiform-validator@2.6.1 /dist/index.js" ></script >
42
38
```
43
39
44
- unpkg:
40
+ ### ESM:
41
+
42
+ jsDelivr:
45
43
46
44
``` bash
47
- https://unpkg.com/ multiform-validator@2.6.0/dist/index.js
45
+ https://cdn.jsdelivr.net/npm/ multiform-validator@2.6.1/+esm
48
46
```
49
47
50
48
``` html
51
- <script src =" https://unpkg.com/multiform-validator@2.6.0/dist/index.js" ></script >
49
+ <script type =" module" >
50
+ import mv from " https://cdn.jsdelivr.net/npm/multiform-validator@2.6.1/+esm"
51
+ </script >
52
52
```
53
53
54
54
### Example of use with CDN
55
55
56
- using cjs:
57
-
58
56
``` html
59
- <script src =" https://unpkg.com/multiform-validator@2.6.0 /dist/index.js" ></script >
57
+ <script src =" https://unpkg.com/multiform-validator@2.6.1 /dist/index.js" ></script >
60
58
<script >
59
+ // Multiform-validator is available in the global scope
61
60
const emailResult = isEmail (" 123456" );
62
61
const cpfResult = cpfIsValid (" 123456" );
63
62
64
63
console .log (emailResult); // returns false
65
64
console .log (cpfResult .isValid ); // returns false
66
65
</script >
67
66
```
68
- or
69
-
70
- using esm:
71
67
72
68
``` html
73
69
<script type =" module" >
74
70
// 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";
76
- import mv from " https://cdn.jsdelivr.net/npm/multiform-validator@2.6.0 /+esm" ;
71
+ // like: import { isEmail, cpfIsValid } from "https://cdn.jsdelivr.net/npm/multiform-validator@2.6.1 /+esm";
72
+ import mv from " https://cdn.jsdelivr.net/npm/multiform-validator@2.6.1 /+esm" ;
77
73
const emailResult = mv .isEmail (" 123456" );
78
74
const cpfResult = mv .cpfIsValid (" 123456" );
79
75
0 commit comments