ImGajeedsEasyConsole 1.1.1
dotnet add package ImGajeedsEasyConsole --version 1.1.1
NuGet\Install-Package ImGajeedsEasyConsole -Version 1.1.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ImGajeedsEasyConsole" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ImGajeedsEasyConsole --version 1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ImGajeedsEasyConsole, 1.1.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ImGajeedsEasyConsole as a Cake Addin #addin nuget:?package=ImGajeedsEasyConsole&version=1.1.1 // Install ImGajeedsEasyConsole as a Cake Tool #tool nuget:?package=ImGajeedsEasyConsole&version=1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
🎮 EasyConsole
Make your .NET console applications beautiful and interactive with EasyConsole! This library provides an enhanced set of console UI components and utilities.
✨ Features
- 🎨 Colorful console output
- 🔐 Secure password input
- ✅ Interactive yes/no prompts
- 📝 Multi-field forms
- 📋 Option selection menus
- 📧 Email validation and verification
- 🎯 Cursor control and positioning
🚀 Getting Started
Installation
dotnet add package ImGajeedsEasyConsole
Quick Start
using ImGajeedsEasyConsole.Components;
EConsole.WriteLine("Hello World", new Color(ConsoleColor.Green));
📚 Examples
🎨 Colored Text
// Single line with color
EConsole.WriteLine("Success!", new Color(ConsoleColor.Green));
// Set color for multiple lines
EConsole.SetColor(new Color(ConsoleColor.Blue));
EConsole.WriteLine("This text is blue");
EConsole.WriteLine("This one too!");
🔐 Password Input
var password = EConsole.ReadPassword("Enter password: ");
✅ Yes/No Questions
var answer = EConsole.BoolQuestion("Would you like to continue?");
📋 Option Selection
var options = new[] {
"Start Game",
"Settings",
"Exit"
};
var selectedIndex = EConsole.SelectOption(options);
📝 Interactive Forms
var fields = new[] {
"Username",
"Email",
"Location"
};
var values = EConsole.Form(fields);
📖 API Reference
Color Management 🎨
Color
Class
// Set foreground color only
var color = new Color(ConsoleColor.Blue);
// Set both foreground and background
var color = new Color(ConsoleColor.White, ConsoleColor.DarkBlue);
Color Control
// Get current colors
var currentColor = EConsole.GetColor();
// Set new colors
EConsole.SetColor(new Color(ConsoleColor.Green));
// Reset to default
EConsole.ResetColor();
Text Output 📝
Write Methods
// Write without line break
EConsole.Write("Loading...", new Color(ConsoleColor.Yellow));
// Write with line break
EConsole.WriteLine("Complete!", new Color(ConsoleColor.Green));
User Input ⌨️
Basic Input
// Simple input
var name = EConsole.ReadLine("Enter your name: ");
// Single key input
var key = EConsole.ReadKey();
Special Input Types
// Secure password input
var password = EConsole.ReadPassword("Password: ");
// Email input with validation
var email = EConsole.ReadEmail("Email: ");
Screen Control 🖥️
Cursor Management
// Get/Set cursor position
EConsole.CursorTop(0);
var left = EConsole.CursorLeft();
// Clear specific line
EConsole.ClearLine(5);
// Clear entire screen
EConsole.Clear();
// Overwrite line contents
EConsole.OverwriteLine(3, "New content");
Interactive Components 🎯
Form Input
var fields = new[] {"Name", "Email", "Phone"};
var values = EConsole.Form(fields);
Option Selection
var options = new[] {"Option A", "Option B", "Option C"};
var selected = EConsole.SelectOption(options);
Email Features 📧
Email Validation
var isValid = EConsole.IsValidEmail("user@example.com");
OTP Verification
var verified = EConsole.OptVerification(
toEmail: "user@example.com",
fromEmail: "your-app@gmail.com",
appPassword: "your-google-app-password"
);
🤝 Contributing
Contributions are welcome! Feel free to submit issues and pull requests.
📄 License
This project is licensed under the MIT License - see the license file for details.
📞 Contact
Have questions? Contact me on Discord: @ImGajeed76
Made with ❤️ by ImGajeed
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Konscious.Security.Cryptography.Argon2 (>= 1.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.