An open API service indexing awesome lists of open source software.

https://github.com/disabledabel/text-to-bash-converter

This project lets you easily transform plain text instructions into executable Bash scripts. Perfect for developers, sysadmins, or anyone who wants to automate tasks quickly without writing Bash manually. Includes a modern “Open Application” button to launch the tool directly.
https://github.com/disabledabel/text-to-bash-converter

bash bash-script bash-scripting

Last synced: about 2 months ago
JSON representation

This project lets you easily transform plain text instructions into executable Bash scripts. Perfect for developers, sysadmins, or anyone who wants to automate tasks quickly without writing Bash manually. Includes a modern “Open Application” button to launch the tool directly.

Awesome Lists containing this project

README

          

# Tech to Bash Converter

[![Fetch Bash Scripts by Repo Topics (PR Approval)](https://github.com/DisabledAbel/Text-to-Bash-Converter/actions/workflows/fetch-bash-scripts.yml/badge.svg)](https://github.com/DisabledAbel/Text-to-Bash-Converter/actions/workflows/fetch-bash-scripts.yml)
**A beautiful, responsive web application that converts your tech code, commands, and snippets into properly formatted bash code blocks for GitHub, documentation, and other markdown platforms.**
## ✨ Features

- **Real-time Conversion**: Instantly converts your input to bash code blocks as you type
- **GitHub Preview**: See exactly how your code blocks will appear on GitHub
- **One-Click Copy**: Copy formatted code blocks to clipboard with a single click

## 📦 Supported Code Block Formats

The converter supports a wide range of programming languages and file formats:

### Programming Languages
- **Bash** - Shell scripting
- **TypeScript** - Typed JavaScript
- **JavaScript** - Web development
- **Python** - General purpose programming
- **Java** - Enterprise applications
- **Go** - System programming
- **Rust** - Systems programming
- **Ruby** - Web development
- **PHP** - Server-side scripting
- **C++** - Systems programming
- **C#** - .NET development
- **Swift** - iOS/macOS development
- **Kotlin** - Android development

### Configuration & Data
- **SQL** - Database queries
- **YAML** - Configuration files
- **JSON** - Data interchange
- **Dockerfile** - Container definitions
- **M3U** - Playlist files

### Web Technologies
- **HTML** - Web markup
- **CSS** - Styling

### Others
- **Shell** - Shell commands
- **Markdown** - Documentation

## 🛠️ Tech Stack

- **Frontend**: React 18 + TypeScript
- **Styling**: Tailwind CSS with custom design system
- **UI Components**: Shadcn/ui component library
- **Icons**: Lucide React
- **Build Tool**: Vite
- **Notifications**: Sonner toast notifications

## 📖 How to Use

1. **Enter Your Code**: Paste or type your tech code, commands, or snippets in the input area
2. **See the Output**: The formatted bash code block appears instantly in the output section
3. **Preview on GitHub**: Check how it will look on GitHub in the preview panel
4. **Copy & Use**: Click the copy button to copy the formatted code block

## 💡 Examples

### Example 1: Installing Dependencies
**Input:**
```
npm install react typescript
```

**Output:**
```bash
npm install react typescript
```

### Example 2: Git Commands
**Input:**
```
git add .
git commit -m "Initial commit"
git push origin main
```

**Output:**
```bash
git add .
git commit -m "Initial commit"
git push origin main
```

### Example 3: Docker Commands
**Input:**
```
docker build -t my-app .
docker run -p 3000:3000 my-app
```

**Output:**
```bash
docker build -t my-app .
docker run -p 3000:3000 my-app
```

### Example 4: System Commands
**Input:**
```
sudo apt update
sudo apt install nodejs npm
node --version
```

**Output:**
```bash
sudo apt update
sudo apt install nodejs npm
node --version
```

## 🎯 Use Cases

- **Documentation**: Format commands for README files and technical documentation
- **GitHub Issues/PRs**: Share properly formatted code blocks in discussions
- **Tutorials**: Create consistent code examples for tutorials and guides
- **Stack Overflow**: Format your questions and answers with proper syntax highlighting
- **Team Communication**: Share formatted commands in Slack, Discord, or other platforms

Text to Bash Converter


🚀 Open Application

❤️💜🩷💙

## 🎨 Features in Detail

### Input Section
- Large textarea with monospace font
- Auto-focus for immediate typing
- Placeholder text with usage hints
- Clear button to reset input

### Output Section
- Read-only formatted output
- Monospace font for code consistency
- Visual bash language indicator
- Copy to clipboard functionality

### GitHub Preview Section
- Realistic GitHub interface mockup
- Shows syntax highlighting as it appears on GitHub
- Terminal-style window with colored dots
- Actual GitHub interface screenshot for context

### User Experience
- Responsive 3-column layout (collapses on smaller screens)
- Toast notifications for user feedback
- Accessible design with proper ARIA labels
- Keyboard shortcuts support

## 🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

1. Fork the project
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

## 📝 License

This project is licensed under the Apache License

---

Made with ❤️ for developers and Disabled people