Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update args for repl.start() #38

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

joshbax189
Copy link
Contributor

Minor fix

The repl.start() method was changed a while ago to take either an object arg or a string for the prompt: https://nodejs.org/docs/latest-v20.x/api/repl.html#replstartoptions

This updates the call to match the new API

require('repl').start({
"prompt": '%s',
"ignoreUndefined": true,  // do not print undefined
"preview": true                 // when completing print out the type in a comment
})

Also, the NODE_REPL_MODE var is available in the inner REPL created by repl.start() so it doesn't need to be passed as an arg.

@redguardtoo redguardtoo merged commit 65a6972 into redguardtoo:master Nov 7, 2024
2 checks passed
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