Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 569 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 569 Bytes

wren-colors

Print fancy messages to the terminal.

Usage

This assumes you've included this repository under /wren-colors in your project root.

import 'wren-colors/index' for AnsiColors, AnsiPrinter

var a = new AnsiPrinter(AnsiColors.BLUE, AnsiColors.WHITE_B, AnsiColors.BLINK)
a.print("This text should be blue on a white background and blink.")

var b = new AnsiPrinter(AnsiColors.BLUE, AnsiColors.WHITE_B)
b.print("This text should be blue on a white background.")

var c = new AnsiPrinter(AnsiColors.BLUE)
c.print("This text should be blue.")