10.0.0 • Published 2 years ago

@utils-fns/utils-fns v10.0.0

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

@utils-fns/utils-fns

npm License Repository

README versions

Portuguese 🇧🇷 | English 🇺🇸

✨ Features

Validators: The @utils-fns/validators library provides the following validators:

  • cpfValidator
  • nisValidator
  • emailValidator
  • cnpjValidator
  • phoneValidator
  • paymentCardValidator (luhn algorithm)
  • paymentSlipValidator (ITF-14)
  • stateRegistrationValidator (inscrição estadual - BR)
  • voterRegistrationValidation (título de eleitor - BR)
  • cnhValidator
  • renavamValidator
  • cepValidator (cep - BR)

Link to module documentation @utils-fns/validators: https://github.com/ccqueiroz/utils-fns/blob/main/packages/validators/README.md

Mask: The @utils-fns/mask library provides the following masks:

  • cpf
  • nis
  • cnpj
  • date
  • paymentSlip
  • phone
  • renavam
  • cnh
  • voterRegister
  • cep
  • generic masks
  • numbers

Link to module documentation @utils-fns/mask: https://github.com/ccqueiroz/utils-fns/blob/main/packages/mask/README.md

Utils: The @utils-fns/utils library provides the following utilities:

Module under construction

  • Data List Cities (BR)
  • Data List States (BR)
  • Data List Countries
  • Lunh Algorithm
  • Lunh Algorithm Mod10
  • Lunh Algorithm Mod11
  • Payment Card Data List
  • Normalize Words
  • Sorting Algorithms
    • Bubble Sort
    • Merge Sort
    • Quick Sort
    • Heap Sort
    • Alphanumeric Sort
    • Heap
    • Selection
    • Bubble
    • Merge
  • Searching Algorithms
    • Binary Search
    • Breadth-First
    • Depth-First
    • Exponential Search
    • Heap Sort
  • Generate File Hash
  • converter base64
  • unConverter base64
  • Params serializer
  • PrintPDF
  • Blob dowload
  • Generate Password
  • Convert Hex To RGB
  • Add Opacity In Color Rgb

Link to module documentation @utils-fns/utils: https://github.com/ccqueiroz/utils-fns/blob/main/packages/utils/README.md

🖥 Supported Environments

  • Applications with javascript ES6 or higher
    • Modern Browsers
    • Server-side
    • Electron
    • Mobile

📦 Install

To install the @utils-fns/utils-fns library: use your preferred package manager

  yarn add @utils-fns/utils-fns

  or

  npm install @utils-fns/utils-fns

🔨 How to use

To access the features, just follow the example:

  //ES6
  import { validators, utils, mask } from "@utils-fns/utils-fns";
  //CommomJS
  const { validators, utils, mask } = require("@utils-fns/utils-fns");

So, just choose which validation tool will be used.

  const cpfValidation = validators.cpf('64912007013')
  //return true

Typescript

@utils-fns/utils-fns is written in TypeScript with complete definitions.

Author

Linkedin Badge Gmail Badge

Licença

This API is licensed MIT.

5.0.0

2 years ago

8.0.0

2 years ago

10.0.0

2 years ago

6.0.0

2 years ago

4.0.0

2 years ago

7.0.0

2 years ago

9.0.0

2 years ago

3.4.0

2 years ago

3.3.0

2 years ago

3.2.0

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

2.2.0

2 years ago

2.1.0

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago