I could be wrong here, but I believe that every module gets it's own copy of "require" and modifying the global one won't do anything.
On Tue, Aug 21, 2012 at 4:26 PM, mscdex <[email protected]> wrote: > On Aug 21, 7:01 pm, Azer Koçulu <[email protected]> wrote: >> Is there any library that can list all the require calls in a project? >> (Already checked out require-analyzer, it looks like a >> dependency-analyzer rather than require) > > What about just monkey patching global.require (ensuring you copy the > properties tacked on to the existing require())? > > -- > 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 -- 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
