The proposal “import.meta” by Domenic Denicola is currently at stage 3. This blog post explains how it works. Module metadata # When it comes to working with a module, you are normally interested in what’s inside it. But occasionally, you need information about the module – its metadata. One example of module metadata for Node.js modules is the global variable __dirname which contains the path of