Skip to main content
REPLServer.prototype.clearBufferedCommand - repl - 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 the replServer.defineCommand() method.

Return Type

void