title: How to get another node project root directory from globally installed node package
body: <p>I have created a tool which generates source code files for the projects in the current working directory and I would like to install it globally <code>npm -g mypackage</code> and to store the configuration of this package inside of root folder of each project that uses this tool in <code>.config.json</code> file.</p>
  
  <p>My question is how I could get the root path of another project from the node? If this would be not a global package I could do it with <code>module.parent</code>. But if it is installed globally than there is no parent</p>