node/bin/node-repl

14 lines
314 B
Plaintext
Raw Normal View History

2009-09-12 02:32:24 +08:00
#!/usr/bin/env node
2010-03-09 07:07:26 +08:00
puts = require("sys").puts;
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