js-cnpj-validation
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

js-cnpj-validation

Lib for CNPJ validation

Javascript example:

const cnpj = require('js-cnpj-validation');  
console.log(cpf.isValidCNPJ("49.623.477/0001-12"))

Output: true

Typescript example:

import { isValidCNPJ } from 'js-cnpj-validation'
console.log(isValidCNPJ("49.623.477/0001-12"))

Output: true

Package Sidebar

Install

npm i js-cnpj-validation

Weekly Downloads

13

Version

1.2.0

License

ISC

Unpacked Size

6.63 kB

Total Files

10

Last publish

Collaborators

  • juliosilvacwb