added explanation of `exports`
authorAJ ONeal <coolaj86@gmail.com>
Thu, 19 May 2011 19:49:29 +0000 (12:49 -0700)
committerkoichik <koichik@improvement.jp>
Wed, 13 Jul 2011 15:08:31 +0000 (00:08 +0900)
Fixes #1075.

doc/api/globals.markdown

index d2678fd..f5c353b 100644 (file)
@@ -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)