title: Get file path of imported module
body: <p>I'm writing a class decorator for my controllers. It looks like:</p>
  
  <pre><code>export function Controller&lt;T extends { new(...args: any[]): {} }&gt; (ctor: T) {
      return class extends ctor {
          public readonly name = name;
      }
  }
  </code></pre>
  
  <p><code>ctor</code> is a constructor of a class decorated with <code>@Controller</code>.</p>
  
  <p>Full path to the controller's file is <code>src/modules/{module}/controllers/{ctrl}Controller.ts</code>. I need to get parts in curly braces and concatenate them into <code>{module}.{ctrl}</code>.</p>
  
  <p>To do so I need a filepath of module from which <code>ctor</code> is imported. How can I obtain it?</p>