2
votes

"Tab"ing the REPL gives me a list of functions, but often working with multiple languages, I forget the signature of common functions like fs.open, etc. Is there anyway to show these in the REPL?

Thanks to auto-complete in editors, they seem to be fine. But REPL for writing some quick script, I have pull up the node documentation each time for simple things.

Is there a better way to deal with this?

1

1 Answers

0
votes

This semi official project developed under the node umbrella on GitHub offers a few improvement over the default REPL while used interactively:

https://github.com/nodejs/repl

Syntax highlighting is enabled for the input, basic functions signatures are displayed as hints.

As stated in this issue, its future is still uncertain, but it's already quite usable in the current state: https://github.com/nodejs/repl/issues/46