From 8cc9ac0df2859fa53592d77d47454e4797010e87 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 19 May 2011 12:49:29 -0700 Subject: [PATCH] added explanation of `exports` Fixes #1075. --- doc/api/globals.markdown | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/api/globals.markdown b/doc/api/globals.markdown index d2678fd..f5c353b 100644 --- a/doc/api/globals.markdown +++ b/doc/api/globals.markdown @@ -79,6 +79,15 @@ A reference to the current module. In particular for more information. `module` isn't actually a global but rather local to each module. + +### exports + +An object which is shared between all instances of the current module and +made accessible through `require()`. +`exports` is the same as the `module.exports` object. See `src/node.js` +for more information. +`exports` isn't actually a global but rather local to each module. + ### setTimeout(cb, ms) ### clearTimeout(t) ### setInterval(cb, ms) -- 2.7.4