as everyone knows Windows does paths with backslashes where Unix does paths with forward slashes. node.js provides path.join()
to always use the correct slash. So for example instead of writing the Unix only 'a/b/c'
you would do path.join('a','b','c')
instead.
However, it seems that despite this difference if you do not normalize your paths (e.g. using path.join) and just write paths like a/b/c
node.js has no problem with running your scripts on Windows.
So is there any benefit over writing path.join('a','b','c')
over 'a/b/c'
? Both appear to work regardless of platform...