Packages

c

io.scalajs.nodejs.repl

EnvironmentVariableOptions

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
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EnvironmentVariableOptions
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EnvironmentVariableOptions(env: process.Environment)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. 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()
  5. 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()
  6. 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()
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  9. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  10. def toString(): String
    Definition Classes
    Any

Deprecated Value Members

  1. 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.

Inherited from AnyVal

Inherited from Any

Ungrouped