Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

REPLCommandAction

REPLCommandAction: function

Type declaration

REPLEval

REPLEval: function

Type declaration

    • (this: REPLServer, evalCmd: string, context: Context, file: string, cb: function): void
    • Parameters

      • this: REPLServer
      • evalCmd: string
      • context: Context
      • file: string
      • cb: function
          • (err: Error | null, result: any): void
          • Parameters

            • err: Error | null
            • result: any

            Returns void

      Returns void

REPLWriter

REPLWriter: function

Type declaration

Variables

Const REPL_MODE_SLOPPY

REPL_MODE_SLOPPY: keyof symbol

A flag passed in the REPL options. Evaluates expressions in sloppy mode.

Const REPL_MODE_STRICT

REPL_MODE_STRICT: keyof symbol

A flag passed in the REPL options. Evaluates expressions in strict mode. This is equivalent to prefacing every repl statement with 'use strict'.

Const writer

writer: REPLWriter & object

This is the default "writer" value, if none is passed in the REPL options, and it can be overridden by custom print functions.

Functions

start

  • Creates and starts a repl.REPLServer instance.

    Parameters

    • Optional options: string | ReplOptions

      The options for the REPLServer. If options is a string, then it specifies the input prompt.

    Returns REPLServer

Generated using TypeDoc