title: Is it possible to require modules from outside of your project directory without relative paths?
body: <p>I'm trying to build a local library of JS modules to use in Node projects.</p>
  
  <p>If a new project lives in <code>/Users/me/projects/path/to/new/project/</code> and my library files are located in <code>/Users/me/projects/library/*.js</code> is there a way to access those files without using a relative path?</p>
  
  <p>In <code>/Users/me/projects/path/to/new/project/app.js</code> you can require foo.js like so:</p>
  
  <p><code>var foo = require('../../../../../library/foo')</code> and that will work but that's clunky and if files move you'd have to update your relative paths.</p>
  
  <p>I've tried <a href="https://www.npmjs.com/package/requirefrom" rel="nofollow">requireFrom</a> and <a href="https://www.npmjs.com/package/app-module-path" rel="nofollow">app-module-path</a> with no luck as they are relative to a project root. </p>
  
  <p>Any ideas for how to require files from outside of your project dir?</p>
  
  <p>Thanks in advance!</p>