https://github.com/jasonuc/greentext
A CLI tool for creating green-text memes in your terminal 🐸
https://github.com/jasonuc/greentext
4chan cobra-cli go golang memes
Last synced: about 1 month ago
JSON representation
A CLI tool for creating green-text memes in your terminal 🐸
- Host: GitHub
- URL: https://github.com/jasonuc/greentext
- Owner: jasonuc
- License: mit
- Created: 2024-12-09T18:33:45.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-03T00:37:08.000Z (10 months ago)
- Last Synced: 2025-02-03T01:26:55.532Z (10 months ago)
- Topics: 4chan, cobra-cli, go, golang, memes
- Language: Go
- Homepage:
- Size: 348 KB
- Stars: 23
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cli-apps-in-a-csv - greentext - A CLI tool for creating green-text memes. (<a name="graphics"></a>Graphics)
- awesome-cli-apps - greentext - A CLI tool for creating green-text memes. (<a name="graphics"></a>Graphics)
README
# greentext
The GreenText Generator CLI is a command-line tool built with Go that lets you create classic greentext with ease.
## Features
- **Customizable Inputs**: Write your own green-text stories with ease.
- **Thumbnail Support**: Add an image to your greentext, or don't if you're feeling minimalist.
- **Support for External Thumbnails**: Use image URLs as thumbnails for your greentext.
- **Customizable Colors**: Set background and text colors using HEX codes.
- **Dynamic Font Options**: Choose your preferred font and size.
- **Fast and Lightweight**: Powered by Go, because performance matters even when making memes.
- **Formatted Output**: Saves greentext as beautifully formatted PNGs, JPGs, JPEGs, and WEBPs ready for sharing.
## Installation
### Using Homebrew
1. Add the tap:
```bash
brew tap jasonuc/greentext
```
2. Install the CLI:
```bash
brew install greentext
```
### Manual Installation
1. Install [Go](https://golang.org/dl/) if not already installed.
2. Install the CLI directly:
```bash
go install github.com/jasonuc/greentext@latest
```
Or clone and build:
```bash
git clone https://github.com/jasonuc/greentext.git
cd greentext
go build -o bin/greentext .
```
3. Run the tool:
```bash
bin/greentext -h
```
## Usage
### Generate
```bash
greentext -l 13 -t https://wojakdb.com/data/posts/3571_9009cb2dd906dccb.png -o example.png
```
- `-l`: Number of lines in the greentext.
- `-t`: Thumbnail image path or URL (optional).
- `-o`: Output file name.
### Key Flags
- `-b`: Background color (e.g., `#FFFFFF`).
- `-c`: Text color (e.g., `#00FF00`).
- `-f`: Font family (e.g., `"Courier New"`).
- `-s`: Font size (e.g., `14`).
- `-i`: Text file with greentext lines.
- `-P`: Preview in browser without saving.
### Example Input
```text
> be me
> buy domain on Vercel for $20
> feeling good about the decision
> couple days later
> Vercel: "lol we're dropping domain prices"
...
```
### Example Output
Generates:

## Contributing
Contributions are welcome! Open an issue or pull request for ideas or fixes.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
Happy meme-ing! 🚀