@bracketed/logger
Version:
An alternative to your run-of-the-mill node console logging functions!
28 lines (25 loc) • 680 B
TypeScript
import { LoggerStyleBackground } from './Background.js';
import { LoggerStyleEffect } from './Effect.js';
import { LoggerStyleText } from './Text.js';
/**
* The options for {@link LoggerStyle}.
* @since 1.0.0
*/
interface LoggerStyleOptions {
/**
* The text effects, e.g. `italic`, `strikethrough`, etc.
* @since 1.0.0
*/
effects?: LoggerStyleEffect[];
/**
* The text color, e.g. `red` or `yellow`.
* @since 1.0.0
*/
text?: LoggerStyleText;
/**
* The background color, e.g. `magenta` or `red`.
* @since 1.0.0
*/
background?: LoggerStyleBackground;
}
export type { LoggerStyleOptions };