import { Color , OgmaSimpleType } from '@ogma/common' ; import { style as styler , Styler } from '@ogma/styler' ; export function colorize ( value , color = Color . WHITE , style = styler , useColor = true ) { if ( useColor ) { value = style [ Color [ color ] . toLowerCase ( ) ] . apply ( value ) ; } return value . toString ( ) ; }