节点v6.4具有一种
editor模式。在repl提示符下
.editor,您可以输入多行。
例
$ node> .editor// Entering editor mode (^D to finish, ^C to cancel)const fn = there => `why hello ${there}`;fn('multiline');// hit ^D 'why hello multiline'> // 'block' gets evaluated and back in single line mode.以下是所有特殊repl命令的文档
https://nodejs.org/api/repl.html#repl_commands_and_special_keys



