1.0.5 • Published 2 years ago

br-formats v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

br-formats 🇧🇷

Supported formats

Phone: 00000000000 | 11 digits
Return (00) 00000-0000

CPF: 00000000000 | 11 digits
Return: 000.000.000-00

CNPJ: 00000000000000 | 14 digits
Return: 00.000.000/0000-00 

CEP: 00000000 | 8 digits
Return: 00.000.000/0000-00 

How to use

//import the format type
const formatPhoneNumber = require('br-format');

Phone format

formatPhoneNumber('00000000000');
// (00) 00000-0000
1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago