@tagged/brazilian-values
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

brazilian-values

VitorLuizC/brazilian-values integration for format-tagged

Usage

import { getFormat } from '@tagged/format'
import { strategies } from '@tagged/brazilian-values'

const format = getFormat(strategies.all) // or strategies.cpf, strategies.cnpj...

const cpf = '72703064004'
const cep = '58805370'

console.log(format`Seu CPF é ${{ cpf }} e seu CEP é ${{ cep }}`)
// Seu CPF é 727.030.640-04 e seu CEP é 58805-370

Readme

Keywords

none

Package Sidebar

Install

npm i @tagged/brazilian-values

Weekly Downloads

0

Version

1.1.0

License

GPL-3.0

Unpacked Size

50 kB

Total Files

25

Last publish

Collaborators

  • rjmunhoz