• options {Object|string} 参见 [repl.start()]。
    • 继承自: {readline.Interface}

    repl.REPLServer 的实例是使用 [repl.start()] 方法或直接使用 JavaScript 的 new 关键字创建。

    1. const repl = require('repl');
    2. const options = { useColors: true };
    3. const firstInstance = repl.start(options);
    4. const secondInstance = new repl.REPLServer(options);