docs.nodejitsu.com

The built-in globals in Node.js

by Charlie McConnell avianflu on

Node.js has a number of built-in global identifiers that every Node.js developer should have some familiarity with. Some of these are true globals, being visible everywhere; others exist at the module level, but are inherent to every module, thus being pseudo-globals.

First, let's go through the list of 'true globals':

As mentioned above, there are also a number of 'pseudo-globals' included at the module level in every module:

Much of this functionality can be extremely useful for a Node.js developer's daily life - but at the very least, remember these as bad names to use for your own functions!