@schedule-tribe/cpf
v0.0.1
Published
This package provides TypeScript type definitions for handling CPF (Cadastro de Pessoa Física) in Domain-Driven Design contexts
Downloads
1
Maintainers
Readme
@schedule-tribe/cpf
The @schedule-tribe/cpf library provides a class CPF for handling cpf operations in TypeScript. It offers various methods for manipulating cpf, calculating differences, formatting cpf, and checking validity. This library aims to simplify cpf management in Domain-Driven Design contexts.
Installation
Install rich-domain
and @schedule-tribe/cpf
with your favorite package manager:
npm i rich-domain @schedule-tribe/cpf
# OR
yarn add rich-domain @schedule-tribe/cpf
Usage
import { CPF } from '@schedule-tribe/cpf';
// Check if is valid value
const isValid = CPF.isValid('9843583475');
// false