passkey-creator
v1.0.0
Published
A CLI tool to generate strong and customizable passwords!
Downloads
51
Maintainers
Readme
Password Creator CLI
This is a simple CLI tool that generates a random password based on user inputs,
such as the desired length and the inclusion of lowercase letters, uppercase letters, numbers, and symbols.
It uses inquirer
, chalk
, and gradient-string
to provide a rich user interface and a customizable password.
Table of Contents
Installation
- Install the cli tool by running:
npm install -g passkey-creator
Usage
To run the password generator, open the terminal and execute the following command:
create-key
You'll be prompted with a series of questions asking about the length of the password and which types of characters to include.
Tip
- I know that writing this big command is not affordable for your fingers. So to shorten this command follow these steps :-
- Open bash
- Type the command :
alias key="create-key"
This will save you some keystrokes. Note that this alias will only persist for the current terminal session. To make it permanent, add the alias to your .bashrc or .zshrc file.
Features
- Customizable Password Length: You can define the length of the generated password.
- Character Type Options: Choose whether to include lowercase letters, uppercase letters, numbers, and symbols.
- Rich User Interface: The CLI interface is styled using
chalk
andgradient-string
for a smooth user experience. - Easy-to-Use: The CLI prompts make it easy to interact with and customize the password generation.
Dependencies
inquirer
: For interactive CLI prompts.chalk
: For colorful terminal output.
License
This project is licensed under the ISC License.