UNPKG

@bracketed/logger

Version:

An alternative to your run-of-the-mill node console logging functions!

24 lines (21 loc) 590 B
import { Color } from '../Colouring/index.js'; import { LoggerStyleResolvable } from './Resolvable.js'; import './Options.js'; import './Background.js'; import './Effect.js'; import './Text.js'; /** * Logger utility that applies a style to a string. * @since 1.0.0 */ declare class LoggerStyle { readonly style: Color; constructor(resolvable?: LoggerStyleResolvable); /** * Applies the style to a string. * @since 1.0.0 * @param string The value to apply the style to. */ run(string: string | number): string; } export { LoggerStyle };