diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2009-10-31 19:02:30 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2009-10-31 19:10:30 +0100 |
commit | 7a2e784ad7386771d15249d446c914fba1675068 (patch) | |
tree | 7920ef3134aa3fb6727269e7a7e595599da753b1 /bin | |
parent | 36f3bc33a399fe5839310cf54902d67a63afd6ba (diff) | |
download | node-new-7a2e784ad7386771d15249d446c914fba1675068.tar.gz |
Module refactor - almost CommonJS compatible now
API change summary:
* require("/sys.js") becomes require("sys")
* require("circle.js") becomes require("./circle")
* process.path.join() becomes require("path").join()
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/node-repl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/node-repl b/bin/node-repl index e08dee0043..b4c60b7428 100755 --- a/bin/node-repl +++ b/bin/node-repl @@ -1,11 +1,11 @@ #!/usr/bin/env node -process.mixin(require("/utils.js")); +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."); -require("/repl.js").start(); +require('repl').start(); // vim:ft=javascript |