JS Essentials Functions
This lib has some of the most used functions in every project, be it web, mobile or backend.
Package Informations
Code Climate
Deep Code
Install
if using npm:
$ npm install js-functions-essentials --save
if using yarn:
$ yarn add js-essentials-functions
Available Functions
name | accept type | description |
---|---|---|
cpfCnpjMask | string |
Returns the masked CPF or CNPJ |
cpfCnpjUnmask | string |
Clears the CPF or CNPJ mask and returns a string |
cepMask | string |
Return the masked CEP |
cepUnmask | string |
Clear the CEP mask and return a string |
Usage with React
import React useState from 'react'import cpfCnpjMask from 'js-functions-essentials' { const cpf setCpf = return <form> <input ="cpf" ="text" = = = /> </form> }
Usage with React Native
import React useState from 'react';impot View TextInput from 'react-native';import cpfCnpjMask from 'js-functions-essentials' { const cpf setCpf = ; return <View => <TextInput = = /> </View> ;}
Contribution
Contributions are what make the open source community an incredible place to learn, inspire and create. Any contribution you make will be much appreciated.
- Fork the project
- Create a Branch for your Feature (
git checkout -b feature/newFeature
) - Add your changes (
git add .
) - Commit your changes (
git commit -m 'Add new feature!
) - Push the Branch (
git push origin feature/newFeature
) - Open a Pull Request
Developers
Julio Augusto |
---|
Licença
The Apache 2.0 (APACHE 2.0)