The name of the directory that the currently executing script resides in.
The filename of the code being executed.
The filename of the code being executed. This is the resolved absolute path of this code file. For a main program this is not necessarily the same filename used in the command line. The value inside a module is the path to that module file.
A reference to the module.exports that is shorter to type.
A reference to the module.exports that is shorter to type. See module system documentation for details on when to use exports and when to use module.exports.
exports isn't actually a global but rather local to each module.
A reference to the current module.
A reference to the current module. In particular module.exports is used for defining what a module exports and makes available through require().
module isn't actually a global but rather local to each module.
In browsers, the top-level scope is the global scope. That means that in browsers if you're in the global scope var something will define a global variable. In Node.js this is different. The top-level scope is not the global scope; var something inside an Node.js module will be local to that module.