3.0.0 • Published 2 months ago

br-doc-validator v3.0.0

Weekly downloads
13
License
Apache-2.0
Repository
github
Last release
2 months ago

Brazilian Document Validator

A Node.js module that validate brazilian documents as CPF and CPNJ.

🇧🇷 Modulo em Node.js para validação de documento CPF e CNPJ.

Node.js

Installation

npm add br-doc-validator
# or
yarn add br-doc-validator

Usage

import documentValidator from "br-doc-validator";

const document = "00000000353";
const result: boolean = documentValidator(document);

if (result) {
  console.log("valid");
} else {
  console.log("invalid");
}
Output should be 'valid'

Test

npm run lint
npm run test
3.0.0

2 months ago

2.1.0

2 months ago

2.0.0

2 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.1.2

5 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago