node/bin/node-repl

12 lines
288 B
JavaScript
Executable File

#!/usr/bin/env node
node.mixin(require("/utils.js"));
puts("Welcome to the Node.js REPL.");
puts("Enter ECMAScript at the prompt.");
puts("Tip 1: Use 'rlwrap node-repl' for a better interface");
puts("Tip 2: Type Control-D to exit.");
require("/repl.js").start();
// vim:ft=javascript