REPLServer.prototype.clearBufferedCommand - Node documentation
method REPLServer.prototype.clearBufferedCommand

Usage in Deno

import { REPLServer } from "node:repl";
REPLServer.prototype.clearBufferedCommand(): void

The replServer.clearBufferedCommand() method clears any command that has been buffered but not yet executed. This method is primarily intended to be called from within the action function for commands registered using thereplServer.defineCommand() method.

Return Type

void