validator-brazil
With this module, you can validate the CPF, CNPJ and CEP numbers. Documents only Brazilian.
Getting started
Install with NPM
$ npm install validator-brazil --save
Install with Yarn
$ yarn add validator-brazil
How to use with ES6
CPF
; // No points or hyphens; // false; // false // With points or hyphens; // false
CNPJ
; // No points or hyphens; // true; // false // With points or hyphens; // true
CEP
; // No points or hyphens; // true; // false // With points or hyphens; // true
How to use with ES5
const validator = ; // No points or hyphensvalidator; // truevalidator; // falsevalidator; // truevalidator; // false // With points or hyphensvalidator; // truevalidator; // false