NPM Build Utilities @ 0.2.0-alpha.1
    Preparing search index...

    Class _Stage_Console_VarInspectPrivate Internal

    To be used by Stage_Console.

    Includes a variety of utilities for printing variable inspections to the console.

    0.1.0-alpha

    Implements

    Index

    Constructors

    Properties

    _msgArgs: (
        level?: number,
        msgArgs?: Partial<MessageMaker.BulkMsgArgs>,
        timeArgs?: Partial<MessageMaker.BulkMsgArgs>,
    ) => {
        msg: Partial<MessageMaker.BulkMsgArgs>;
        time: Partial<MessageMaker.BulkMsgArgs>;
    }

    Function to construct a MessageMaker.BulkMsgArgs object.

    Type declaration

    config: Config.Class

    Current project config.

    params: Params

    Current CLI params.

    Instance to use within the class.

    Methods

    • Internal

      Prints a timestamped log message to the console. Only if CLI.Params.debug is truthy.

      Parameters

      • variable: TestType | { [key: string]: TestType }

        Variable to inspect. See VariableInspector.

      • level: number

        Depth level for this message.

      • OptionalmsgArgs: Partial<BulkMsgArgs>

        Argument overrides for the message.

      • OptionaltimeArgs: Partial<BulkMsgArgs>

        Argument overrides for the message's timestamp.

      Returns void

    • Internal

      Prints a timestamped log message to the console.

      Parameters

      • variable: TestType | { [key: string]: TestType }

        Variable to inspect. See VariableInspector.

      • level: number

        Depth level for this message.

      • OptionalmsgArgs: Partial<BulkMsgArgs>

        Argument overrides for the message.

      • OptionaltimeArgs: Partial<BulkMsgArgs>

        Argument overrides for the message's timestamp.

      Returns void

    • Internal

      Prints a timestamped log message to the console. Only if CLI.Params.progress is truthy.

      Parameters

      • variable: TestType | { [key: string]: TestType }

        Variable to inspect. See VariableInspector.

      • level: number

        Depth level for this message.

      • OptionalmsgArgs: Partial<BulkMsgArgs>

        Argument overrides for the message.

      • OptionaltimeArgs: Partial<BulkMsgArgs>

        Argument overrides for the message's timestamp.

      Returns void

    • Internal

      Outputs a default-level message of the variable.

      Parameters

      • variable: TestType | { [key: string]: TestType }

        Variable to inspect. See VariableInspector.

      • Optionalargs: Partial<Args>

        Override arguments for converting the variable.

      Returns string

    • Internal

      Method for printing a log message to the console. Only if CLI.Params.verbose is truthy.

      Parameters

      • variable: TestType | { [key: string]: TestType }

        Variable to inspect. See VariableInspector.

      • level: number

        Depth level for this message.

      • OptionalmsgArgs: Partial<BulkMsgArgs>

        Argument overrides for the message.

      • OptionaltimeArgs: Partial<BulkMsgArgs>

        Argument overrides for the message's timestamp.

      Returns void