Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
cpf_and_cnpj-generator
Advanced tools
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
If you want to help me, you can buy me a coffee (:
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.
unpkg:
https://unpkg.com/Gerador-CPF-e-CNPJ-valido@1.0.8/dist/bundle.js
<scritp src="https://unpkg.com/Gerador-CPF-e-CNPJ-valido@1.0.8/dist/bundle.js"></script>
You can install this package using npm:
npm install cpf_and_cnpj-generator
How to Use After installing the package, you can use it in your JavaScript project:
// Using import
import generator from 'cpf_and_cnpj-generator';
console.log(generator.cnpjGerador);
console.log(generator.cpfGerador);
// Or
import { cnpjGerador, cpfGerador } from 'cpf_and_cnpj-generator';
console.log(cnpjGerador);
console.log(cpfGerador);
// Using require
const generator = require('cpf_and_cnpj-generator');
console.log('CPF Gerado:', generator.cnpjGerador);
console.log('CNPJ Gerado:', generator.cpfGerador);
// Or
const { cpfGerador, cnpjGerador } = require('cpf_and_cnpj-generator');
console.log('CPF Gerado:', cnpjGerador);
console.log('CNPJ Gerado:', cpfGerador);
Keep in mind that the code to import or require depends on the JavaScript environment you're running the package in (for example, Node.js with or without ES module support). Therefore, choose the import or require option that suits your environment.
##########################################################################################
Português
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.
https://gabriel-logan.github.io/Gerador-CPF-e-CNPJ-valido
unpkg:
https://unpkg.com/cpf_and_cnpj-generator@1.0.9/dist/bundle.js
<scritp src="https://unpkg.com/cpf_and_cnpj-generator@1.0.9/dist/bundle.js"></script>
Você pode instalar este pacote usando npm:
npm install cpf_and_cnpj-generator
Após instalar o pacote, você pode utilizá-lo em seu projeto JavaScript:
// Usando import
import gerador from 'cpf_and_cnpj-generator';
console.log(gerador.cnpjGerador);
console.log(gerador.cpfGerador);
// Ou
import { cnpjGerador, cpfGerador } from 'cpf_and_cnpj-generator';
console.log(cnpjGerador);
console.log(cpfGerador);
// Usando require
const gerador = require('cpf_and_cnpj-generator');
console.log('CPF Gerado:', gerador.cnpjGerador);
console.log('CNPJ Gerado:', gerador.cpfGerador);
// Ou
const { cpfGerador, cnpjGerador } = require('cpf_and_cnpj-generator');
console.log('CPF Gerado:', cnpjGerador);
console.log('CNPJ Gerado:', cpfGerador);
If you want to help me, you can buy me a coffee (:
Lembre-se de que o código de importação ou require depende do ambiente JavaScript em que você está executando o pacote (por exemplo, Node.js com suporte a módulos ES ou sem suporte). Portanto, escolha a opção de importação ou require adequada ao seu ambiente.
FAQs
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
The npm package cpf_and_cnpj-generator receives a total of 231 weekly downloads. As such, cpf_and_cnpj-generator popularity was classified as not popular.
We found that cpf_and_cnpj-generator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.