Skip to content

A simple tool to transform text on your terminal or Go program.

License

Notifications You must be signed in to change notification settings

guumaster/textifier

Repository files navigation

Tests GitHub Release Go Report Card License

textifier

A simple tool to transform text on your terminal or Go program.

Installation

Install binary directly

Feel free to change the path from /usr/local/bin, just make sure textifier is available on your $PATH (check with textifier -h).

Linux/MacOS

$ 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

Release page download

Go to the Release page and pick one.

With Go tools

go get -u github.com/guumaster/textifier

Module Usage

	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:
  // 💥     🅗 🅔 🅛 🅛 🅞   🅦 🅞 🅡 🅛 🅓   🍺

Run in playground

CLI Usage

$> textifier -s -q "hello world"
// Output:
//  🄷 🄴 🄻 🄻 🄾   🅆 🄾 🅁 🄻 🄳 

CLI Options

    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)

References

License

MIT license

About

A simple tool to transform text on your terminal or Go program.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published