A simple tool to transform text on your terminal or Go program.
Feel free to change the path from /usr/local/bin
, just make sure textifier
is available on your $PATH
(check with textifier -h
).
$ curl -sfL https://raw.githubusercontent.com/guumaster/textifier/master/install.sh | bash -s -- -b /usr/local/bin
Depending on the path you choose, it may need sudo
$ curl -sfL https://raw.githubusercontent.com/guumaster/textifier/master/install.sh | sudo bash -s -- -b /usr/local/bin
Go to the Release page and pick one.
go get -u github.com/guumaster/textifier
package main
import (
"fmt"
"github.com/guumaster/textifier/pkg/transform"
)
func main() {
f := transform.Compose(
transform.CircleInverse,
transform.Spacer,
transform.Emoji,
)
fmt.Println(f(":boom: Hello World :beer:"))
}
// Output:
// 💥 🅗 🅔 🅛 🅛 🅞 🅦 🅞 🅡 🅛 🅓 🍺
$> textifier -s -q "hello world"
// Output:
// 🄷 🄴 🄻 🄻 🄾 🅆 🄾 🅁 🄻 🄳
USAGE:
textifier <TEXT_TO_TRANSFORM>
cat some_file | textifier
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--table, -t adds the flip table guy (default: false)
--circle, -c circled letters (default: false)
--square, -q boxed letters (default: false)
--double, -d double strike letters (default: false)
--upper, -u uppercase all letters (default: false)
--inverse, -i inverse colors (only for square and circle) (default: false)
--space, -s add spaces between letters (default: false)
--emoji, -e parse emoji icons (default: false)
--mirror, -m reverse direction (default: false)
--help, -h show help (default: false)
--version, -v print the version (default: false)
- Uses urfave/cli to run as CLI.
- Uses kyokomi/emoji to parse emojis.