New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cpf_and_cnpj-generator

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpf_and_cnpj-generator

This repository contains a JavaScript code that generates a valid Brazilian CPF (Cadastro de Pessoas Físicas). CPF is a unique identification number assigned to individuals in Brazil. The code ensures that the generated CPF numbers follow the required val

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
234
decreased by-4.88%
Maintainers
1
Weekly downloads
 
Created
Source

Brazilian CPF and CNPJ Generators

This npm package provides JavaScript functions to generate valid Brazilian CPF (Cadastro de Pessoas Físicas) and CNPJ (Cadastro Nacional da Pessoa Jurídica) numbers.

Installation

You can install this package using npm:

How to Use

After installing the package, you can use it in your JavaScript project:

const cpfGenerator = require('brazilian-cpf-cnpj-generator').cpf;
const cnpjGenerator = require('brazilian-cpf-cnpj-generator').cnpj;

console.log('Generated CPF:', cpfGenerator());
console.log('Generated CNPJ:', cnpjGenerator());


######################################################################


# Geradores de CPF e CNPJ Brasileiros

Este pacote npm fornece funções em JavaScript para gerar números válidos de CPF (Cadastro de Pessoas Físicas) e CNPJ (Cadastro Nacional da Pessoa Jurídica) para o Brasil.

## Instalação

Você pode instalar este pacote usando npm:


## Como Usar

Após instalar o pacote, você pode utilizá-lo em seu projeto JavaScript:

```javascript
const cpfGenerator = require('brazilian-cpf-cnpj-generator').cpf;
const cnpjGenerator = require('brazilian-cpf-cnpj-generator').cnpj;

console.log('CPF Gerado:', cpfGenerator());
console.log('CNPJ Gerado:', cnpjGenerator());

Keywords

FAQs

Package last updated on 22 Jul 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc