Class

io.scalajs.npm.otaatrepl

OTaaTReplOptions

Related Doc: package otaatrepl

Permalink

class OTaaTReplOptions extends Object

OTaaTRepl Options

Annotations
@RawJSType() @ScalaJSDefined()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OTaaTReplOptions
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OTaaTReplOptions(timeout: UndefOr[Int] = js.undefined, prompt: UndefOr[String] = js.undefined, input: UndefOr[Readable] = js.undefined, output: UndefOr[Writable] = js.undefined, terminal: UndefOr[Boolean] = js.undefined, eval: UndefOr[Function] = js.undefined, useColors: UndefOr[Boolean] = js.undefined, useGlobal: UndefOr[Boolean] = js.undefined, ignoreUndefined: UndefOr[Boolean] = js.undefined, writer: UndefOr[Function] = js.undefined, replMode: UndefOr[String] = js.undefined)

    Permalink

    timeout

    the deferred/promise timeout

    prompt

    the prompt and stream for all I/O. Defaults to > .

    input

    the readable stream to listen to. Defaults to process.stdin.

    output

    the writable stream to write readline data to. Defaults to process.stdout.

    terminal

    pass true if the stream should be treated like a TTY, and have ANSI/VT100 escape codes written to it. Defaults to checking isTTY on the output stream upon instantiation.

    eval

    function that will be used to eval each given line. Defaults to an async wrapper for eval(). See below for an example of a custom eval.

    useColors

    a boolean which specifies whether or not the writer function should output colors. If a different writer function is set then this does nothing. Defaults to the repl's terminal value.

    useGlobal

    if set to true, then the repl will use the global object, instead of running scripts in a separate context. Defaults to false.

    ignoreUndefined

    if set to true, then the repl will not output the return value of command if it's undefined. Defaults to false.

    writer

    the function to invoke for each command that gets evaluated which returns the formatting (including coloring) to display. Defaults to util.inspect.

    replMode

    controls whether the repl runs all commands in strict mode, default mode, or a hybrid mode ("magic" mode.) Acceptable values are:

    • repl.REPL_MODE_SLOPPY - run commands in sloppy mode.
    • repl.REPL_MODE_STRICT - run commands in strict mode. This is equivalent to prefacing every repl statement with 'use strict'.
    • repl.REPL_MODE_MAGIC - attempt to run commands in default mode. If they fail to parse, re-try in strict mode.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. var eval: UndefOr[Function]

    Permalink

    function that will be used to eval each given line.

    function that will be used to eval each given line. Defaults to an async wrapper for eval(). See below for an example of a custom eval.

  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. var ignoreUndefined: UndefOr[Boolean]

    Permalink

    if set to true, then the repl will not output the return value of command if it's undefined.

    if set to true, then the repl will not output the return value of command if it's undefined. Defaults to false.

  14. var input: UndefOr[Readable]

    Permalink

    the readable stream to listen to.

    the readable stream to listen to. Defaults to process.stdin.

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. var output: UndefOr[Writable]

    Permalink

    the writable stream to write readline data to.

    the writable stream to write readline data to. Defaults to process.stdout.

  21. var prompt: UndefOr[String]

    Permalink

    the prompt and stream for all I/O.

    the prompt and stream for all I/O. Defaults to > .

  22. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  23. var replMode: UndefOr[String]

    Permalink

    controls whether the repl runs all commands in strict mode, default mode, or a hybrid mode ("magic" mode.) Acceptable values are:

    controls whether the repl runs all commands in strict mode, default mode, or a hybrid mode ("magic" mode.) Acceptable values are:

    • repl.REPL_MODE_SLOPPY - run commands in sloppy mode.
    • repl.REPL_MODE_STRICT - run commands in strict mode. This is equivalent to prefacing every repl statement with 'use strict'.
    • repl.REPL_MODE_MAGIC - attempt to run commands in default mode. If they fail to parse, re-try in strict mode.
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. var terminal: UndefOr[Boolean]

    Permalink

    pass true if the stream should be treated like a TTY, and have ANSI/VT100 escape codes written to it.

    pass true if the stream should be treated like a TTY, and have ANSI/VT100 escape codes written to it. Defaults to checking isTTY on the output stream upon instantiation.

  26. var timeout: UndefOr[Int]

    Permalink

    the deferred/promise timeout

  27. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. var useColors: UndefOr[Boolean]

    Permalink

    a boolean which specifies whether or not the writer function should output colors.

    a boolean which specifies whether or not the writer function should output colors. If a different writer function is set then this does nothing. Defaults to the repl's terminal value.

  30. var useGlobal: UndefOr[Boolean]

    Permalink

    if set to true, then the repl will use the global object, instead of running scripts in a separate context.

    if set to true, then the repl will use the global object, instead of running scripts in a separate context. Defaults to false.

  31. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. var writer: UndefOr[Function]

    Permalink

    the function to invoke for each command that gets evaluated which returns the formatting (including coloring) to display.

    the function to invoke for each command that gets evaluated which returns the formatting (including coloring) to display. Defaults to util.inspect.

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped