<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>node on Kizito</title>
		<link>https://kizi.to/tags/node/</link>
		<description>Recent content in node on Kizito</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Sat, 14 Mar 2020 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://kizi.to/tags/node/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>to resolve or to join?</title>
				<link>https://kizi.to/node-path-resolve-join/</link>
				<pubDate>Sat, 14 Mar 2020 00:00:00 +0000</pubDate>
				<guid>https://kizi.to/node-path-resolve-join/</guid>
				<description>&lt;p&gt;If you’ve used Node.js for more than at least half a year, I’m fairly certain you might have come across the built-in &lt;code&gt;path&lt;/code&gt; module.&lt;/p&gt;&#xA;&lt;p&gt;In this note we’ll be looking at two APIs the &lt;code&gt;path&lt;/code&gt; module provides us with which, on the surface, seem to do similar duties.&lt;/p&gt;&#xA;&lt;p&gt;These APIs?&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;path.resolve&lt;/code&gt; &amp;amp;&amp;amp; &lt;code&gt;path.join&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Let’s dive in…&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-for-though&#34;&gt;what for though?&lt;/h2&gt;&#xA;&lt;p&gt;Before looking at the similarities and differences between both methods, it’s worth pointing out that most of the time, my use case for reaching out for any of them is to get the absolute path of a file… a file I’m either trying to read from, write to, delete, or manipulate in some form or another.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
