Skip to content

docs: improve Node REPL dot commands explanation#71

Open
zZMoZz wants to merge 1 commit into
nodejs:mainfrom
zZMoZz:patch-1
Open

docs: improve Node REPL dot commands explanation#71
zZMoZz wants to merge 1 commit into
nodejs:mainfrom
zZMoZz:patch-1

Conversation

@zZMoZz
Copy link
Copy Markdown

@zZMoZz zZMoZz commented May 13, 2026

  • Group .clear and .break together as equivalent in default REPL
  • Simplify descriptions of dot commands
  • Clarify that .clear only resets context in custom programmatic REPL

- Group `.clear` and `.break` together as equivalent in default REPL
- Simplify descriptions of dot commands
- Clarify that `.clear` only resets context in custom programmatic REPL

Signed-off-by: Mohamed Mohsen <zmohamedmohsnz@gmail.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nodejs-learn Ready Ready Preview May 13, 2026 9:40am

Request Review

@cursor
Copy link
Copy Markdown

cursor Bot commented May 13, 2026

PR Summary

Low Risk
Documentation-only edits with no runtime or API changes; risk is limited to potential inaccuracies in the REPL command descriptions.

Overview
Updates the Node.js REPL “Dot commands” documentation to simplify and reword the command descriptions, including grouping .break and .clear together for multiline-exit behavior.

Adds an explicit note that .clear fully resets REPL context only for custom, programmatically created REPL instances (with a short require('repl').start() example).

Reviewed by Cursor Bugbot for commit 0781e7e. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions
Copy link
Copy Markdown

👋 Codeowner Review Request

The following codeowners have been identified for the changed files:

Team reviewers: @nodejs/repl

Please review the changes when you have a chance. Thank you! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant