Skip to content

Jexulie/Niji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Niji

Golang Coloring Cli Output.

Installing

$ go get github.com/Jexulie/Niji

How to Use

   // import package
   import niji "github.com/Jexulie/Niji"

   func main() {
    /* Standart colors
        Black,
        Red,
        Green,
        Yellow,
        Blue,
        Magenta,
        Cyan,
        White
   */

      // returns string
      str := niji.FormatGreen("Cow")
   
      // prints
      niji.PrintMagenta("Powerpuff Girls...")

   /* Custom Colors */

      // for HEX 
      blue := niji.HEX("#4D9FF7")

      // or as short form #49F

      niji.PrintCustomHEXln(blue, "Sky")

      // for RGB
      red := niji.RGB{R: 255, G: 0, B: 0}

      niji.PrintCustomRGBln(red, "Rawrr!")
   }

Known Problems

  • Program works in Bash, ConEmu & Git-Bash But Not in Powershell and Command Prompt

Todo (Maybe)

  • Support for Powershell and Command Prompt.
  • Support for Background Coloring.
  • Support for other stylings e.g. Underline, Italic, Bold, Strikethrough.

Releases

No releases published

Packages

No packages published

Languages