pixi-console - v5.1.1
    Preparing search index...

    Interface CommandContext

    What a command and the evaluator receive besides their input.

    interface CommandContext {
        pixiConsole: PixiConsole;
        line: string;
        lastResult: unknown;
    }
    Index
    pixiConsole: PixiConsole

    The console running the line. Its log()/print() methods write to the canvas console only.

    line: string

    The whole line as entered, trimmed.

    lastResult: unknown

    What the previous line produced, see PixiConsole.lastResult ($_ in createJsEvaluator).