validation-br 0.21.1 → 0.21.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/package.json +20 -2
- package/readme.md +14 -10
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "validation-br",
|
|
3
3
|
"description": "Brazilian personal documents validation - cpf, cnpj, titulo, pis/pasep, cnh",
|
|
4
|
-
"version": "0.21.
|
|
4
|
+
"version": "0.21.2",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "yarn build && cls && node tests | tap-spec",
|
|
7
7
|
"build": "babel src --source-maps -d dist",
|
|
@@ -56,7 +56,25 @@
|
|
|
56
56
|
"judicial",
|
|
57
57
|
"justiça",
|
|
58
58
|
"protocolo",
|
|
59
|
-
"federal"
|
|
59
|
+
"federal",
|
|
60
|
+
"fake",
|
|
61
|
+
"falso",
|
|
62
|
+
"mask",
|
|
63
|
+
"mascara",
|
|
64
|
+
"validate",
|
|
65
|
+
"fake cpf",
|
|
66
|
+
"fake cnpj",
|
|
67
|
+
"fake cnh",
|
|
68
|
+
"fake pis",
|
|
69
|
+
"fake pasep",
|
|
70
|
+
"fake cadunico",
|
|
71
|
+
"fake renavam",
|
|
72
|
+
"fake titulo",
|
|
73
|
+
"fake titulo eleitor",
|
|
74
|
+
"fake titulo eleitoral",
|
|
75
|
+
"fake número processo",
|
|
76
|
+
"processo justiça",
|
|
77
|
+
"processo judicial"
|
|
60
78
|
],
|
|
61
79
|
"license": "MIT",
|
|
62
80
|
"private": false
|
package/readme.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# validation-br
|
|
2
2
|
|
|
3
|
-
Biblioteca de validação de documentos pessoais do Brasil com suporte a CPF, CNPJ, Título Eleitoral, PIS/PASEP, CNH
|
|
3
|
+
Biblioteca de validação de documentos pessoais do Brasil com suporte a CPF, CNPJ, Título Eleitoral, PIS/PASEP, CNH. Também valida numerações de outros tipos de registros como RENAVAM, Processos Judiciais e Objetos registrados de Rastreamento dos Correios.
|
|
4
|
+
|
|
5
|
+
Validation-BR também permite a criação de números fake das numerações acima para fins de teste de desenvolvimento, além de aplicação de máscaras e cálculo do dígito verificador.
|
|
6
|
+
|
|
7
|
+
Validation-BR também permite criação de números fake para facilitar o desenvolvimento e testes, além de aplicar máscaras e calcular somente os dígitos verificadores.
|
|
4
8
|
|
|
5
9
|
# Instalação
|
|
6
10
|
|
|
@@ -64,15 +68,15 @@ cpf.validateOrFail('01234567890'); // -> true
|
|
|
64
68
|
|
|
65
69
|
## Tabela de Conteúdo
|
|
66
70
|
|
|
67
|
-
- [isCNH](#isCNH) - Validação do CNH
|
|
68
|
-
- [isCPF](#isCPF) - Validação do CPF
|
|
69
|
-
- [isCNPJ](#isCNPJ) - Validação do CNPJ
|
|
70
|
-
- [isPostalCode](#isPostalCode) - Validação de Objetos Registrados dos Correios
|
|
71
|
-
- [isJudicialProcess](#isJudicialProcess) - Validação de Números de Processos Judiciais
|
|
72
|
-
- [isPIS](#isPIS) - Validação de PIS, PASEP, NIS e NIT
|
|
73
|
-
- [isPostalCode](#isPostalCode) - Validação de Objetos Registrados dos Correios
|
|
74
|
-
- [isRenavam](#isRenavam) - Validação de RENAVAM
|
|
75
|
-
- [isTitulo](#isTitulo) - Validação do Título de Eleitor
|
|
71
|
+
- [isCNH](#isCNH-value-) - Validação do CNH
|
|
72
|
+
- [isCPF](#isCPF-value-) - Validação do CPF
|
|
73
|
+
- [isCNPJ](#isCNPJ-value-) - Validação do CNPJ
|
|
74
|
+
- [isPostalCode](#isPostalCode-value-) - Validação de Objetos Registrados dos Correios
|
|
75
|
+
- [isJudicialProcess](#isJudicialProcess-value-) - Validação de Números de Processos Judiciais
|
|
76
|
+
- [isPIS](#isPIS-value-) - Validação de PIS, PASEP, NIS e NIT
|
|
77
|
+
- [isPostalCode](#isPostalCode-value-) - Validação de Objetos Registrados dos Correios
|
|
78
|
+
- [isRenavam](#isRenavam-value-) - Validação de RENAVAM
|
|
79
|
+
- [isTitulo](#isTitulo-value-) - Validação do Título de Eleitor
|
|
76
80
|
|
|
77
81
|
### isCNH( `value` )
|
|
78
82
|
|