1.0.2 • Published 4 years ago

@fabioalmeida/cnpj v1.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

Install

Install with npm:

$ npm i @fabioalmeida/cnpj

Usage

var cnpj = require('@fabioalmeida/cnpj')
console.log(cnpj.isValid('75875106000138'))

var cnpjNum = cnpj.generate()
console.log(cnpj.isValid(cnpjNum)) // result true
console.log(cnpj.format(('75344111000114'))) // 75.344.111/0001-14
1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

6 years ago