@termun/core - v0.0.0
    Preparing search index...

    Class Utility

    Index

    Constructors

    Methods

    Properties

    Constructors

    Methods

    • Returns true if debug file logging is currently active.

      Returns boolean

    • Appends a line to the debug log file, stripping ANSI escape codes.

      Parameters

      • value: string

        Text to log.

      • force: boolean = false

        Write even when debug logging is disabled.

      Returns void

    • Returns the shared Env instance holding all resolved environment defaults.

      Returns Env

    • Wraps text with a chalk color if the color is valid. Returns the plain text when no color is given, or an empty string when text is undefined.

      Parameters

      • Optionaltext: string

        Text to style.

      • Optionalcolor: ColorName

        Optional chalk color name.

      Returns string

    Properties

    env: Env = ...
    debugLogPath: string = ""