1.0.0 • Published 8 years ago

bradoc v1.0.0

Weekly downloads
2
License
-
Repository
github
Last release
8 years ago

bradoc Code Climate Build Status

A node module to gen, validate and format Brazilian documents numbers.

Getting Started

Install the module with

npm install bradoc

Use the module

var bradoc = require('bradoc');

Generators and Validators for CPF and CNPJ are available.

CPF

To generate a valid CPF (also formatted)

bradoc.cpf.generate(); 

To validate a CPF (formatted or not)

bradoc.cpf.validate('423oiu423iu42'); 

CNPJ

To generate a valid CNPJ (also formatted)

bradoc.cnpj.generate(); 

To validate a CNPJ (formatted or not)

bradoc.cnpj.validate('423oiu423iu42'); 

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

Test your code using Mocha. For that, use:

npm test

License

Copyright (c) 2013 Jú Gonçalves
Licensed under the MIT license.

1.0.0

8 years ago

0.2.9

9 years ago

0.2.8

10 years ago

0.2.7

10 years ago

0.2.6

11 years ago

0.2.5

12 years ago

0.2.2

12 years ago

0.2.1

12 years ago

0.2.0

12 years ago

0.1.0

13 years ago