Skip to content

REPL: Add .clearhistory command #63905

@SudhansuBandha

Description

@SudhansuBandha

What is the problem this feature will solve?

This feature allows users to clear REPL history from within the REPL itself, avoiding the need to manually locate and delete the history file. Similar to how Git Bash supports history -c.

What is the feature you are proposing to solve the problem?

This built-in command allows users to clear REPL history from within the REPL itself, avoiding the need to manually locate and delete the history file.

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Awaiting Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions