Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
console.log in the repl #3876
If you connect to the standard node repl, then console.log and console.error work as you'd expect.
However, when connecting to some other king of repl, console.log goes to the process's stdout, which is not what you want: you want it to print to the repl's output stream. (Otherwise you're actually just dumping into the server's logs, but the "console" is the thing you're sitting at.)
The repl should provide a customized console object that prints to the repl's output stream instead of stdout/err