File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 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
2525
2626``` html
2727<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"
2929 </script >
3030```
3131
3232### CJS:
3333
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+
3444unpkg:
3545
3646``` bash
@@ -61,6 +71,8 @@ using esm:
6171
6272``` html
6373<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";
6476 import mv from " https://cdn.jsdelivr.net/npm/multiform-validator@2.6.0/+esm" ;
6577 const emailResult = mv .isEmail (" 123456" );
6678 const cpfResult = mv .cpfIsValid (" 123456" );
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const defaultErrorMsg: string[] = [
3434/**
3535 * @param cnpj
3636 * @param errorMsg optional
37- * @example cpfIsValid ('72.501.263/0001-40');
37+ * @example cnpjIsValid ('72.501.263/0001-40');
3838 * @description This function returns four errors in the following order,
3939 *
4040 * 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