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