</span><span class="nx">resolve</span><span class="p">(</span><span class="nx">__dirname</span><span class="p">,</span> <span class="s2">"foo.js"</span><span class="p">);</span><br/></code></pre>
</div>

<p>Both <code class="highlighter-rouge">path.join()</code> and <code class="highlighter-rouge">path.resolve()</code> are suitable replacements for string concatenation wherever file or directory paths are being created.</p>

<h2 id="rule-details">Rule Details<a style="font-family: anchorjs-icons; font-style