2.0.3 • Published 1 year ago

flaformatter v2.0.3

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

Getting Started :D

A simple example. I promise to write a better readme

Install:

npm i flaformatter

Import:

import flaFormatter from 'flaformatter'

Use:

<input maxlength={9} onChange={(a)=>flaFormatter(a,'cep')} />

The maxLength is optional. It is used to limit the number of characters

Response:

99999-999

Available formats :

  • rg: 12.123.123-1

  • cpf: 123.123.123-12

  • cnpj: 12.123.123/1234-12

  • cpf/cnpj: 123.123.123-12 or 12.123.123/1234-12

  • telefone: 1234 1234

  • int: 123456789

  • celular: (12) 12345-1234

  • cep: 12345-123

  • money: 123.123.123,12

  • card: 1234 1234 1234 1234

Feature maxLength :

You can set thrid param as true to use flaformatter default maxLength.

example:

<input onChange={(e)=>flaFormatter(e,'cep',true)} />
2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

2.0.0

1 year ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago