5 These objects are available in all modules. Some of these objects aren't
6 actually in the global scope but in the module scope - this will be noted.
12 * {Object} The global namespace object.
14 In browsers, the top-level scope is the global scope. That means that in
15 browsers if you're in the global scope `var something` will define a global
16 variable. In Node this is different. The top-level scope is not the global
17 scope; `var something` inside a Node module will be local to that module.
25 The process object. See the [process object](process.html#process) section.
33 Used to print to stdout and stderr. See the [stdio](stdio.html) section.
41 Used to handle binary data. See the [buffers](buffers.html) section.
49 To require modules. See the [Modules](modules.html#modules) section.
50 `require` isn't actually a global but rather local to each module.
55 Use the internal `require()` machinery to look up the location of a module,
56 but rather than loading the module, just return the resolved filename.
62 Modules are cached in this object when they are required. By deleting a key
63 value from this object, the next `require` will reload the module.
71 The filename of the code being executed. This is the resolved absolute path
72 of this code file. For a main program this is not necessarily the same
73 filename used in the command line. The value inside a module is the path
76 Example: running `node example.js` from `/Users/mjr`
78 console.log(__filename);
79 // /Users/mjr/example.js
81 `__filename` isn't actually a global but rather local to each module.
89 The name of the directory that the currently executing script resides in.
91 Example: running `node example.js` from `/Users/mjr`
93 console.log(__dirname);
96 `__dirname` isn't actually a global but rather local to each module.
105 A reference to the current module. In particular
106 `module.exports` is the same as the `exports` object. See `src/node.js`
107 for more information.
108 `module` isn't actually a global but rather local to each module.
115 An object which is shared between all instances of the current module and
116 made accessible through `require()`.
117 `exports` is the same as the `module.exports` object. See `src/node.js`
118 for more information.
119 `exports` isn't actually a global but rather local to each module.
121 See the [module system documentation](modules.html) for more
124 See the [module section](modules.html) for more information.
126 ## setTimeout(cb, ms)
128 ## setInterval(cb, ms)
133 The timer functions are global variables. See the [timers](timers.html) section.