node/bin/node-repl

13 lines
316 B
Plaintext
Raw Normal View History

2009-09-12 02:32:24 +08:00
#!/usr/bin/env node
process.mixin(require('sys'));
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.");
2010-01-05 00:10:53 +08:00
puts("Type '.help' for options.");
2009-09-12 02:32:24 +08:00
require('repl').start();
2009-09-12 02:32:24 +08:00
// vim:ft=javascript