implicit final class EnvironmentVariableOptions extends AnyVal
Various behaviors of the Node.js REPL can be customized using the following environment variables:
- NODE_REPL_HISTORY
- NODE_REPL_HISTORY_SIZE
- NODE_REPL_MODE
- Alphabetic
- By Inheritance
- EnvironmentVariableOptions
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new EnvironmentVariableOptions(env: process.Environment)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
def
NODE_REPL_HISTORY: Option[String]
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.
- Annotations
- @inline()
-
def
NODE_REPL_HISTORY_SIZE: Option[Int]
Defaults to 1000.
Defaults to 1000. Controls how many lines of history will be persisted if history is available. Must be a positive number.
- Annotations
- @inline()
-
def
NODE_REPL_MODE: Option[String]
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.
- Annotations
- @inline()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any
Deprecated Value Members
-
def
NODE_REPL_HISTORY_FILE: Option[String]
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.
- Annotations
- @inline() @deprecated
- Deprecated
(Since version 3.0.0) Use NODE_REPL_HISTORY instead.