I have a project and I build path from token strings using path join e.g.
let myPath = path.join('root', 'path01')
Normally I develop on a POSIX dev machine so no issues at all... but (Unexpected) is that if I run the app on windows it will build paths backslashed
And finally the app is deployed on a POSIX system so it will produce possibly wrong expectations (if starting to develop from windows)...
What's the best way to treat paths with nodejs/javascript so to have them working on all platforms?