trying to find the proper way to determine the path of the module requiring
my module given the following requirements:
* must be strict mode complaint
* cannot depend on node arguments (i.e. process.argv)
* must work when being required from different modules in the same
execution (i.e. my module is already cached)
i ended up patching Module._load() to capture the request and then wrapping
it in a closure like shown
here: https://github.com/bodenr/expose/blob/master/index.js
however this doesn't feel right -- i must be missing something.
thx in advanced
--
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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en