When a valid path is given, persistent REPL history will be saved to the specified file rather than .node_repl_history in the user's home directory.
When a valid path is given, persistent REPL history will be saved to the specified file rather than .node_repl_history in the user's home directory. Setting this value to "" will disable persistent REPL history. Whitespace will be trimmed from the value.
Defaults to 1000.
Defaults to 1000. Controls how many lines of history will be persisted if history is available. Must be a positive number.
May be any of sloppy, strict, or magic.
May be any of sloppy, strict, or magic. Defaults to magic, which will automatically run "strict mode only" statements in strict mode.
Previously in Node.js/io.js v2.x, REPL history was controlled by using a NODE_REPL_HISTORY_FILE environment variable, and the history was saved in JSON format.
Previously in Node.js/io.js v2.x, REPL history was controlled by using a NODE_REPL_HISTORY_FILE environment variable, and the history was saved in JSON format. This variable has now been deprecated, and the old JSON REPL history file will be automatically converted to a simplified plain text format. This new file will be saved to either the user's home directory, or a directory defined by the NODE_REPL_HISTORY variable, as documented in the Environment Variable Options.
(Since version 3.0.0) Use NODE_REPL_HISTORY instead.
Various behaviors of the Node.js REPL can be customized using the following environment variables: