repl: add history support for REPL
Adds support for saving command history for REPL. When the binary is
run without any arguments or with the -i
flag, it will default to
saving the command history to ~/.node_history. Otherwise, it is
disabled by default.
The path to which the history is saved can be changed by setting the
NODE_HISTORY_PATH
environment variable. Saving history can be
disabled by setting the NODE_DISABLE_HISTORY
environment variable.
See #394 (closed)