UNPKG

@satheshsat/angular-cpf

Version:

CPF generator and validator

33 lines (21 loc) 786 B
# CPF [![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/satheshsat) [![NPM](https://img.shields.io/npm/v/@satheshsat/angular-cpf.svg)](https://www.npmjs.com/package/@satheshsat/angular-cpf) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](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)