Sometimes. The documentation includes this:
path.win32
The path.win32
property provides access to Windows-specific implementations of the path methods.
The API is accessible via require('node:path').win32
or require('node:path/win32')
.
The docs also include this:
path.posix
The path.posix
property provides access to POSIX specific implementations of the path methods.
The API is accessible via require('node:path').posix
or require('node:path/posix')
.
This only really becomes an issue for me when dealing with "drive letters": I try to keep everything relative, but there are times when that is not possible.