@@ -15,65 +15,61 @@ Feel free to find bugs and report them to me. Your feedback is highly appreciate
1515
1616## CDNs
1717
18- ### ESM :
18+ ### Default :
1919
2020jsDelivr:
2121
2222``` 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
2424```
2525
2626``` 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 >
3028```
3129
32- ### CJS:
33-
34- jsDelivr:
30+ unpkg:
3531
3632``` 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
3834```
3935
4036``` 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 >
4238```
4339
44- unpkg:
40+ ### ESM:
41+
42+ jsDelivr:
4543
4644``` 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
4846```
4947
5048``` 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 >
5252```
5353
5454### Example of use with CDN
5555
56- using cjs:
57-
5856``` 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 >
6058<script >
59+ // Multiform-validator is available in the global scope
6160 const emailResult = isEmail (" 123456" );
6261 const cpfResult = cpfIsValid (" 123456" );
6362
6463 console .log (emailResult); // returns false
6564 console .log (cpfResult .isValid ); // returns false
6665 </script >
6766```
68- or
69-
70- using esm:
7167
7268``` html
7369<script type =" module" >
7470 // 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" ;
7773 const emailResult = mv .isEmail (" 123456" );
7874 const cpfResult = mv .cpfIsValid (" 123456" );
7975
0 commit comments