<commit_before># ng-cpf-cnpj

AngularJS directive to validate CPF/CNPJ numbers.

## How to use

Just add ```ng-cpf``` or ```ng-cnpj``` to any ```<input/>```. You can also use ```ui-mask```, from [ui-utils](https://github.com/angular-ui/ui-utils), to restrict the format:

```html
<form name="myForm">
<commit_msg>adding install instructions<commit_after># ng-cpf-cnpj

AngularJS directive to validate CPF/CNPJ numbers.

## How to install

```bower install ng-cpf-cnpj --save```

And add to your index.html

```
<script src="bower_components/cpf_cnpj/build/cpf.js"></script>
<script src="bower_components/cpf_cnpj/build/cnpj.js"></script>
<script src="bower_components/ng-cpf-cnpj/lib/ngCpfCnpj.js"></script>
```

## How to use

Just add ```ng-cpf``` or ```ng-cnpj``` to any ```<input/>```. You can also use ```ui-mask```, from [ui-utils](https://github.com/angular-ui/ui-utils), to restrict the format:

```html
<form name="myForm">

{'fraction_non_alphanumeric': 0.20042872454448016, 'fraction_numerical': 0.0, 'mean_word_length': 4.8375, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1384897', 'n_tokens_mistral': 363, 'n_tokens_neox': 358, 'n_words': 86}