longify

Installation

go install github.com/syumai/[email protected]

Usage

$ cat cow.txt
           __n__n__
    .------`-\00/-'
   /  ##  ## (oo)
  /|    ##    |
 /  \## __   ./
     |//YY \|/
     |||   |||

$ cat cow.txt | longify
           __n__n__
    .------`-\00/-'
   /  ##  ## (oo)
  /|    ##    |
  /|    ##    |
  /|    ##    |
  /|    ##    |
  /|    ##    |
  /|    ##    |
 /  \## __   ./
     |//YY \|/
     |||   |||

$ cat cow.txt | longify -l 3 # specify length (default: random number in 3-13)
           __n__n__
    .------`-\00/-'
   /  ##  ## (oo)
  /|    ##    |
  /|    ##    |
  /|    ##    |
 /  \## __   ./
     |//YY \|/
     |||   |||

# cat cow.txt | longify -p 7 # specify longified position (default: center)
           __n__n__
    .------`-\00/-'
   /  ##  ## (oo)
  /|    ##    |
 /  \## __   ./
     |//YY \|/
     |||   |||
     |||   |||
     |||   |||
     |||   |||
     |||   |||

License

MIT

Author

syumai

GitHub

View Github