@satheshsat/angular-cnpj
Version:
CNPJ generator and validator
33 lines (21 loc) • 796 B
Markdown
# CNPJ [](https://github.com/sponsors/satheshsat)
[](https://www.npmjs.com/package/@satheshsat/angular-cnpj) [](https://standardjs.com)
## Install
```bash
npm install --save @satheshsat/angular-cnpj
```
## Usage
```ts
import { Injectable } from '@angular/core';
import CnpjService from '@satheshsat/angular-cnpj';
@Injectable({
providedIn: 'root'
})
export class ExampleService {
constructor(public cnpj: CnpjService) {
cnpj.validate(cnpj.generate());
}
}
```
## License
MIT © [satheshsat](https://github.com/satheshsat)