How to get the path to the file that required your module?

JavaScript
module.parent
Source

Also in JavaScript: