This repository contains an implementation of generating QR Codes and random passwords using Node.js.
The goal of this project is to provide a simple tool to generate QR Codes and passwords that can be used in various applications, such as websites, mobile applications and documents.
- Generation of QR Codes from links and passwords defined by the user.
- Support for various output formats (e.g. PNG, SVG).
- Node.js (version 12 or higher)
- npm (version 6 or higher)
To install and configure the project, follow the steps below:
- Clone the repository:
git clone https://github.com/gufvr/qrcode.git
- Navigate to the project directory:
cd qrcode
- Install dependencies:
npm install
- To generate a QR Code, use the command:
npm run dev
- Type
1
to select the QR Code generation option:
Escolha a ferramenta (1 para QRCode ou 2 para password): 1
- Enter the link you want to generate the QR Code:
Insira o link para gerar o QRCode: (link desejado aqui)
- Choose the type of QR Code you want:
Escolha o tipo de QRCode desejado (1 - normal e 2 - terminal):
- QR Code generated:
- To set the character limit and specify which types to generate, navigate to the
.env
file:
UPPERCASE_LETTERS=true
LOWERCASE_LETTERS=true
NUMBERS=true
SPECIAL_CHARACTERS=true
PASSWORD_LENGTH=13
- Run the
npm run dev
command and select option2
:
Choose the tool (1 for QRCode or 2 for password): 2
- Randomly generated password as per specifications:
Password
43#i|hwBpZ)W^
src/
: Project source code.prompts-schema/
: Directory of prompts displayed in the terminal.services/
: Directory with settings for using the password and QR Code generators.package.json
: Project settings and dependencies..env
: Environment configuration file.
Contribuições são bem-vindas! Sinta-se à vontade para abrir uma issue ou enviar um pull request.
Este projeto está licenciado sob a MIT License.