Skip to main content
REPLServer.prototype.clearBufferedCommand - node__repl.d.ts - Node documentation
method REPLServer.prototype.clearBufferedCommand

Usage in Deno

```typescript import { REPLServer } from "node:node__repl.d.ts"; ```
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