Skip to content

docs: improve Node REPL dot commands explanation#71

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

docs: improve Node REPL dot commands explanation#71
zZMoZz wants to merge 3 commits 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 16, 2026 2:21pm

Request Review

@cursor
Copy link
Copy Markdown

cursor Bot commented May 13, 2026

PR Summary

Low Risk
Low risk documentation-only change; main risk is minor confusion from list formatting/wording tweaks around .clear behavior.

Overview
Updates the Node.js REPL guide to simplify and regroup dot-command descriptions, combining .break/.clear as multi-line escape behavior and tightening wording for .help, .editor, .load, .save, and .exit.

Adds an explicit clarification that .clear only resets the full REPL context when using a programmatically created REPL (with a short require('repl').start() example).

Reviewed by Cursor Bugbot for commit e56c7de. 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! 🙏

Comment thread pages/command-line/how-to-use-the-nodejs-repl.md Outdated
Comment thread pages/command-line/how-to-use-the-nodejs-repl.md
Comment thread pages/command-line/how-to-use-the-nodejs-repl.md Outdated
Comment thread pages/command-line/how-to-use-the-nodejs-repl.md
Co-authored-by: Aviv Keller <me@aviv.sh>
Signed-off-by: Mohamed Mohsen <zmohamedmohsnz@gmail.com>
@zZMoZz
Copy link
Copy Markdown
Author

zZMoZz commented May 16, 2026

Hi, I’ve applied all the suggested changes and updated the branch.
Could you please review again and approve if everything looks good? Thanks!

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.

2 participants