dwyl/env2

How does module.parent.id work?

Closed this issue · 2 comments

rjmk commented

Apparently "[t]ypically this is the fully resolved filename" of the requiring module. But why would there be a 'node_modules' in that path when we require from a module in our project? How is the id property different from the filename property?

I'm so excite to read the @rjmk explanation of module.parent ! 💖

@rjmk if you have time to add a description of how module.parent.id please re-open this issue and PR into the Readme. thanks!