-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
Add exit support to repl #6457
Copy link
Copy link
Closed
Labels
questionIssues that look for answers.Issues that look for answers.replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.
Metadata
Metadata
Assignees
Labels
questionIssues that look for answers.Issues that look for answers.replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.
Just a nice to have feature request. It would be nice, if one could simply type
exitand enter into the repl, and have itprocess.exit(0)This would match up with most command-line interface repls, from bash to cmd, etc... and is second nature to type in. I'm not sure if this has been debated, as I didn't see an issue regarding this. As it stands, I can type
exit\nfaster than I can press ctrl+c twice.Hopefully this feature is doable, and others can agree on the usefulness.
Alternatively to an immediate
process.exit(0)would beprocess.nextTick(() => process.exit(0))so that pending outputs can finish out.