In npm path module, people use path.join because it handles cross platform slashes and extra slashes. However, is there a way to compare two paths to see if its the same folder in a cross platform way?
I want to avoid situations where it ends up comparing /foo/bar to \foo\bar and says its not the same but it really is.
Thanks