Skip to content

Commit

Permalink
Module refactor - almost CommonJS compatible now
Browse files Browse the repository at this point in the history
API change summary:

  * require("/sys.js") becomes require("sys")

  * require("circle.js") becomes require("./circle")

  * process.path.join() becomes require("path").join()
  • Loading branch information
ry committed Oct 31, 2009
1 parent 36f3bc3 commit 7a2e784
Show file tree
Hide file tree
Showing 50 changed files with 473 additions and 387 deletions.
4 changes: 2 additions & 2 deletions bin/node-repl
Original file line number Diff line number Diff line change
@@ -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
Loading

0 comments on commit 7a2e784

Please sign in to comment.