Socket
Book a DemoInstallSign in
Socket

documento-validacao-br

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

documento-validacao-br

Pacote de validação de CPFs de forma rápida e simples

1.0.12
latest
Source
npmnpm
Version published
Weekly downloads
11
Maintainers
1
Weekly downloads
 
Created
Source

documento validacao br

Instalação

npm install -f documento-validacao-br

Como usar o gerador de CPF?

import { GerarCPF } from "documento-validacao-br";

const value = (new GerarCPF()).execute()

Como usar o validador de CPF?

import { ValidarCPF } from "documento-validacao-br";

const value = (new ValidarCPF('000.000.000-00')).execute()

Gerar CPF com mascara

import { GerarCPF } from "documento-validacao-br";

const mask = 'xxx.xxx.xxx-xx'
const value = (new GerarCPF(mask)).execute()

Usando require

const { GerarCPF } = require("documento-validacao-br")

var cpf = new GerarCPF().execute()

Validar CNPJ

import { ValidarCNPJ } from "documento-validacao-br";

let cnpj = new ValidarCNPJ('000000000000000').execute()

console.log(validate)

Gerar CNPJ

import { GerarCNPJ } from "documento-validacao-br";

let cnpj = new GerarCNPJ().execute()

console.log(validate)

Gerar CNPJ com mascara

import { GerarCNPJ } from "documento-validacao-br";

let cnpj = new GerarCNPJ('xx.xxx.xxx/xxxx-xx').execute()

console.log(validate)

Todas as ferramentas deste pacote são usados no toolsfordevs.com.br. Acesse para dar uma conferida e um crédito ao projeto.

Por favor, ajude um pobre programador a continuar esse projeto. Minha chave pix: https://toolsfordevs.com.br/_next/image?url=%2Fpix.jpeg&w=256&q=75 Qualquer valor já sou grato.

Keywords

gerador de cpf

FAQs

Package last updated on 08 Jun 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.