Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tlkamp/mockbob
Converts text into Spongebob meme mocking format.
https://github.com/tlkamp/mockbob
cli go golang hacktoberfest meme
Last synced: 11 days ago
JSON representation
Converts text into Spongebob meme mocking format.
- Host: GitHub
- URL: https://github.com/tlkamp/mockbob
- Owner: tlkamp
- License: mit
- Created: 2019-12-08T02:56:36.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-08-17T17:41:34.000Z (3 months ago)
- Last Synced: 2024-08-17T18:50:18.137Z (3 months ago)
- Topics: cli, go, golang, hacktoberfest, meme
- Language: Go
- Homepage:
- Size: 39.1 KB
- Stars: 9
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Go Report Card](https://goreportcard.com/badge/github.com/tlkamp/mockbob)](https://goreportcard.com/report/github.com/tlkamp/mockbob)
# mockbob
![mascot](doc/gopher.png)
A CLI tool for generating Spongebob meme text.
Because sometimes manually typing out that format takes too many braincells.
## Demo
![mockbob](https://user-images.githubusercontent.com/18516698/72223486-eed92080-3534-11ea-94df-b9d5ae48e43f.gif)## Usage
> Note: Stdin takes precedence over argument provided values
To use `mockbob`, simply call it in your terminal.
```shell
$ mockbob herpaderp
hErPaDeRp
```For multiple words, use quotes:
```shell
# Arg
$ mockbob do you even lift bro
dO yOu EvEn LiFt BrO# Stdin
$ echo do you even lift bro | mockbob
dO yOu EvEn LiFt BrO
````mockbob` will preserve punctuation:
```shell
# Arg
$ mockbob 'do you even lift bro?'
dO yOu EvEn LiFt BrO?# Stdin
$ echo 'do you even lift bro?' | mockbob
dO yOu EvEn LiFt Bro?
```And if you want to start off with capital letters, pass the `-c` flag.
```shell
# Arg
$ mockbob -c "do you even lift bro?"
Do YoU eVeN lIfT bRo?# Stdin
$ echo "do you even lift bro?" | mockbob -c
Do YoU eVeN lIfT bRo?
```## Installation
To install this module, simply run:
```console
$ go install github.com/tlkamp/mockbob@latest# mockbob is now available in your terminal
$ which mockbob
/Users/traci/go/bin/mockbob$ mockbob -h
mockbob will take any set of input text, and return it in a Spongebob meme mocking format.Examples:
mockbob "do you even lift bro" -> dO yOu EvEn LiFt BrO
mockbob -c "do you even lift bro" -> Do YoU eVeN lIfT bRo
mockbob herpderp -> hErPdErP
mockbob -c herpderp -> HeRpDeRp
mockbob -r herpaderp ->HerPAdErPUsage:
mockbob [word or sentence] [flags]Flags:
-h, --help help for mockbob
-r, --random-caps randomize the capital letters through the text
-c, --start-caps start the text with a capital letter
```