js-cpf-cnpj-validation
v1.0.0
Published
Lib to validate CPF or CNPJ
Downloads
5
Maintainers
Readme
js-cpf-cnpj-validation
Lib for CNPJ validation
Javascript CNPJ example:
const cpfOrCnpj = require('js-cpf-cnpj-validation');
console.log(cpfOrCnpj.isCPForCNPJ("49.623.477/0001-12"))
Output: true
Typescript CNPJ example:
import { isCPForCNPJ } from 'js-cpf-cnpj-validation'
console.log(isCPForCNPJ("49.623.477/0001-12"))
Output: true
Javascript CPF example:
const cpfOrCnpj = require('js-cpf-cnpj-validation');
console.log(cpfOrCnpj.isCPForCNPJ("153.856.490-40"))
Output: true
Typescript CPF example:
import { isCPForCNPJ } from 'js-cpf-cnpj-validation'
console.log(isCPForCNPJ("153.856.490-40")
Output: true