Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "assert/is-node-repl/docs/types/index.d"

Index

Functions

Functions

Export assignment isNodeREPL

  • isNodeREPL(): boolean
  • Returns a boolean indicating if the function is called from a Node.js REPL environment.

    Notes

    • False positives are possible due to the existence of a userland package having the same module id (see repl) as the builtin Node.js repl.

    Returns boolean

    boolean indicating if the function is called from a Node.js REPL environment

    Example

    var bool = isNodeREPL();
    // returns <boolean>