cpf-cpnj-formatter
v1.0.0
Published
Brazilian CPF and CNPJ formatter
Downloads
5
Readme
CPF and CNPJ formatter 📦
how to install ?
npm install cpf-cpnj-formatter
yarn add cpf-cpnj-formatter
usage
import { mask } from 'cpf-cpnj-formatter'
// CPF
mask(21490841040) //~> 214.908.410-40
mask('78734612033') //~> 787.346.120-33
// CNPJ
mask(12738586000175) //~> 12.738.586/0001-75
mask('32957821000107') //~> 32.957.821/0001-07