Skip to content

Instantly share code, notes, and snippets.

@jeromeetienne
Created August 10, 2010 21:09
Show Gist options
  • Save jeromeetienne/518013 to your computer and use it in GitHub Desktop.
Save jeromeetienne/518013 to your computer and use it in GitHub Desktop.
node.js module fun
jerome@jmebox:/tmp/sloti$ cat A.js
console.log("foo");
jerome@jmebox:/tmp/sloti$ cat a.js
require('./A');
jerome@jmebox:/tmp/sloti$ cat b.js
require("./a");
require("./A");
jerome@jmebox:/tmp/sloti$ node b.js
foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment