From: AJ ONeal Date: Thu, 19 May 2011 19:49:29 +0000 (-0700) Subject: added explanation of `exports` X-Git-Tag: v0.4.10~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8cc9ac0df2859fa53592d77d47454e4797010e87;p=platform%2Fupstream%2Fnodejs.git added explanation of `exports` Fixes #1075. --- 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)