Hello,
A couple of weeks ago I saw a slide where @mikeal mentioned: "if your module
exposes more than one function, you might be doing it wrong :)"
I replied by asking: "@mikeal What if I have a bunch of utility functions?
Isn't this the purpose of a module? A module per function sounds like
overkill..."
He replied with: "@titusmagnus module.exports = function default () {}.
module.exports.notdefault = function () {}"
I'm fairly new to Node and I don't really know how to implement a module with
this syntax. As a matter of fact, I haven't been able to find any related
documentation. What is the purpose of default() and notdefault()? Is there a
page where I can see this in action? A real example would be awesome.
Thanks!
-- Tito
--
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