title: Get the path to a node module's directory
body: <p>I want to get some files that reside in a NPM package. </p>
  
  <p>Currently I am using Vue and a validator and I want to grab a localization file to do translation.</p>
  
  <p>I have imported the validator like you would normally do it:</p>
  
  <pre><code>import VeeValidate from 'vee-validate';
  </code></pre>
  
  <p>This package has a <code>dist</code> directory which also includes the <code>locale</code> directory. This directory has some files that I want.</p>
  
  <p>I could just create a path up to the <code>node_modules</code> folder and go all the way down again. But this seems extremely sloppy and error-prone.</p>
  
  <p>Is there a way to get a path to the package directly so I can import the files I need?</p>