nodejs / nodejs/node

REPL: Add .clearhistory command

Open
#63,905 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request repl
Dominant language
JavaScript
Stars
122k
Forks
37.3k
Avg merge
4d 2h
Merged PRs (30d)
283

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the REPL's built-in command handling and history persistence code. Check how existing REPL commands are tested, then add coverage showing that .clearhistory removes the stored REPL history without requiring users to locate the history file.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.