as everyone knows that windows makes backslashes, where unix does forward slashes. Node.js provides path.join() to always use the correct forward slash. So, for example, instead of writing unix only 'a/b/c' instead you would do path.join('a','b','c') .
However, it seems that despite this difference, if you do not normalize your paths (for example, using path.join) and just write paths like a/b/c Node.js does not have problems running your scripts on Windows ...
So, is there any advantage over writing path.join('a','b','c') over 'a/b/c' ? since both of them work regardless of the platform ...
balupton Mar 18 2018-12-18T00: 00Z
source share