🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

multiform-validator

Package Overview
Dependencies
Maintainers
0
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multiform-validator - npm Package Compare versions

Comparing version

to
2.6.1

2

package.json
{
"name": "multiform-validator",
"version": "2.6.0",
"version": "2.6.1",
"description": "Javascript library made to validate, several form fields, such as: email, images, phone, password, cpf etc.",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -18,3 +18,3 @@ > [!NOTE]

### ESM:
### Default:

@@ -24,30 +24,39 @@ jsDelivr:

```bash
https://cdn.jsdelivr.net/npm/multiform-validator@2.6.0/+esm
https://cdn.jsdelivr.net/npm/multiform-validator@2.6.1/dist/index.min.js
```
```html
<script type="module">
import multiform-validator from "https://cdn.jsdelivr.net/npm/multiform-validator@2.6.0/+esm"
</script>
<script src="https://cdn.jsdelivr.net/npm/multiform-validator@2.6.1/dist/index.min.js"></script>
```
### CJS:
unpkg:
```bash
https://unpkg.com/multiform-validator@2.6.0/dist/index.js
https://unpkg.com/multiform-validator@2.6.1/dist/index.js
```
```html
<script src="https://unpkg.com/multiform-validator@2.6.0/dist/index.js"></script>
<script src="https://unpkg.com/multiform-validator@2.6.1/dist/index.js"></script>
```
### Example of use with CDN
### ESM:
using cjs:
jsDelivr:
```bash
https://cdn.jsdelivr.net/npm/multiform-validator@2.6.1/+esm
```
```html
<script src="https://unpkg.com/multiform-validator@2.6.0/dist/index.js"></script>
<script type="module">
import mv from "https://cdn.jsdelivr.net/npm/multiform-validator@2.6.1/+esm"
</script>
```
### Example of use with CDN
```html
<script src="https://unpkg.com/multiform-validator@2.6.1/dist/index.js"></script>
<script>
// Multiform-validator is available in the global scope
const emailResult = isEmail("123456");

@@ -60,9 +69,8 @@ const cpfResult = cpfIsValid("123456");

```
or
using esm:
```html
<script type="module">
import mv from "https://cdn.jsdelivr.net/npm/multiform-validator@2.6.0/+esm";
// You can also import only the functions you need
// like: import { isEmail, cpfIsValid } from "https://cdn.jsdelivr.net/npm/multiform-validator@2.6.1/+esm";
import mv from "https://cdn.jsdelivr.net/npm/multiform-validator@2.6.1/+esm";
const emailResult = mv.isEmail("123456");

@@ -135,3 +143,3 @@ const cpfResult = mv.cpfIsValid("123456");

### You can use it in React Native, Angular, any javascript framework or any javascript or typescript code.
### You can use it in React Native, Nextjs, Nestjs, Angular, any javascript framework or any javascript or typescript code.

@@ -138,0 +146,0 @@ #### Example using Reactjs:

@@ -5,3 +5,3 @@ import type { ValidateFunctions } from "./types";

* @param errorMsg optional
* @example cpfIsValid('72.501.263/0001-40');
* @example cnpjIsValid('72.501.263/0001-40');
* @description This function returns four errors in the following order,

@@ -8,0 +8,0 @@ *