aliastron
v1.0.2
Published
๐ A beautiful, interactive CLI tool to manage Electron app aliases with style!
Downloads
22
Maintainers
Readme
๐ Aliastron
A beautiful, interactive CLI tool to manage your Electron application aliases with style!
โจ Features
- ๐จ Beautiful UI - Colorful gradients, ASCII art banner, and styled tables
- ๐ฑ๏ธ Interactive Menus - Easy-to-use arrow key navigation
- ๐ List Aliases - View all your Electron app aliases in a formatted table
- โ Create Aliases - Add new Electron app shortcuts with validation
- ๐๏ธ Remove Aliases - Multi-select checkboxes to remove multiple aliases at once
- โ Input Validation - Ensures proper alias names and URLs
- ๐ Persistent Storage - Stores aliases in
~/.electron-apps - ๐ Auto .bashrc Integration - Automatically configures your shell
๐ฆ Installation
From npm (Recommended)
# Install globally
npm install -g aliastron
# Run it
aliastron
# or use aliases
electron-manager
eamFrom Source
# Clone the repository
git clone https://github.com/yourusername/aliastron.git
cd aliastron
# Install dependencies
npm install
# Run locally
npm start
# Or link globally
npm link
aliastron๐ฎ Usage
Simply run the application:
node index.jsOr if installed globally:
electron-managerMenu Options
- ๐ List all aliases - Display all configured Electron app aliases
- โ Create new alias - Add a new Electron app shortcut
- ๐๏ธ Remove aliases - Select and remove one or more aliases
- ๐ช Exit - Exit the application
๐ ๏ธ How It Works
The tool manages aliases in ~/.electron-apps file and automatically ensures your .bashrc sources this file. Each alias is a shortcut that launches an Electron app with a specified URL.
Example Alias Format
alias myapp="/usr/lib/electron37/electron https://example.com > /dev/null 2>&1 &"๐ Dependencies
- chalk - Terminal string styling
- inquirer - Interactive command line prompts
- ora - Elegant terminal spinners
- boxen - Create boxes in the terminal
- gradient-string - Beautiful gradient text
- figlet - ASCII art text
- cli-table3 - Pretty tables for the terminal
๐จ Screenshots
The app features:
- Colorful ASCII art banner
- Gradient colored text
- Beautiful boxed messages
- Formatted tables with borders
- Smooth spinners for operations
- Interactive checkboxes and lists
๐ Notes
After creating or removing aliases, remember to either:
- Open a new terminal, OR
- Run:
source ~/.electron-apps
๐ License
MIT
