Ink Classes - Rafostar/ink GitHub Wiki
Ink.Printer
let printer = new Ink.Printer(options)
options
- an object containing configuration properties:
font
- font to use for printed text (Ink.Font - single or array)color
- color to use for printed text (Ink.Color)background
- color to use for background of printed text (Ink.Color)
All of the above properties can be changed at runtime.
Functions:
printer.print(arguments) // Prints styled text into `stdout`.
printer.printerr(arguments) // Prints styled text into `stderr`.
printer.getPainted(arguments) // Returns styled text as string.
arguments
- one or more values in either String
or Array
type.