Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "cpf-check", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Validador de CPF Moderno, Isomórfico e Super Leve.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cpf.min.js", |
@@ -42,10 +42,15 @@ # cpf-check | ||
CPF(algumCpf); | ||
// true | ||
const { valid, error, code } = CPF(algumCpf); | ||
// valid => true | ||
// error => false | ||
// code => 'VALID' | ||
CPF.validate(algumCpf); | ||
// true | ||
const resultado = CPF.validate(algumCpf); | ||
// resultado => { valid: true, error: false, code: 'VALID' } | ||
validate(algumCpf); | ||
// true | ||
const resultado = validate('não-cpf'); | ||
// resultado => { valid: false, error: true, code: 'LENGTH } | ||
const resultado = validate('12345678910'); | ||
// resultado => { valid: false, error: true, code: 'INVALID' } | ||
``` | ||
@@ -52,0 +57,0 @@ |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
66357
117
1