0.0.1 • Published 1 year ago

@schedule-tribe/cpf v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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