Socket
Book a DemoInstallSign in
Socket

cpf_utils_dio

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpf_utils_dio

0.1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

CpfUtilsDio

Esta gem serve para fazer validação e formatação de CPF, utilize e seja feliz :)

Instação

Adicionar em seu Gemfile

gem 'cpf_utils_dio_dio'

Para instalar rode o comando abaixo

bundle install

Ou instalar diretamente sem um Gemfile:

gem install cpf_utils_dio

Utilizar a formatação de CPF

cpf = "33253375512"
formatado = CpfUtilsDio::formatar(cpf)
# retorno de "332.533.755-12"

Utilizar a validação de CPF

cpf = "33253375512"
formatado = CpfUtilsDio::cpf_valido?(cpf)
# retorno de false

FAQs

Package last updated on 03 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.