2009-09-12 02:32:24 +08:00
|
|
|
#!/usr/bin/env node
|
|
|
|
|
2010-03-09 07:07:26 +08:00
|
|
|
puts = require("sys").puts;
|
|
|
|
|
2009-09-24 06:56:24 +08:00
|
|
|
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
|
|
|
|
2009-11-01 02:02:30 +08:00
|
|
|
require('repl').start();
|
2009-09-12 02:32:24 +08:00
|
|
|
|
|
|
|
// vim:ft=javascript
|