vality-core 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Value objects e validações para formulários (CPF, CNPJ, Email, Moeda, DatePic
|
|
|
5
5
|
## 📖 Documentação completa
|
|
6
6
|
|
|
7
7
|
**Instalação, API, exemplos em Vue 3, React e Angular:**
|
|
8
|
-
**[Documentação principal →](https://github.com/weslanra/vality-core)**
|
|
8
|
+
**[Documentação principal →](https://github.com/weslanra/vality-core/tree/main/docs)**
|
|
9
9
|
|
|
10
10
|
## Instalação
|
|
11
11
|
|
|
@@ -19,6 +19,11 @@ npm install vality-core
|
|
|
19
19
|
import { Cpf, Cnpj, Email, Moeda, DatePicker } from "vality-core";
|
|
20
20
|
|
|
21
21
|
const cpf = new Cpf("123.456.789-09");
|
|
22
|
+
console.log(cpf.ehValido) // true
|
|
23
|
+
|
|
22
24
|
const email = new Email("usuario@exemplo.com");
|
|
25
|
+
console.log(email.ehValido) // true
|
|
26
|
+
|
|
23
27
|
const moeda = new Moeda(1000);
|
|
28
|
+
console.log(moeda.valor) // R$ 1000,00
|
|
24
29
|
```
|