Node's module wrapper is* (function (exports, require, module, __filename,
__dirname) {});.* A large portion of the code in existing node modules use
module.exports, and in js file. I'd venture to say a significant majority
of public modules you'd find on github or npm use *module.exports*. A quick
scan of the modules that npm itself depends on (third party modules
authored by an assortment of people) shows 17 of 20 modules using*module.exports
*.
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en