You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
url: missing posix/win fileURLtoPath alternative #51609
Are there common usecases where url.pathToFileURL() or url.fileURLToPath() are needed, but path module is not?
IMHO these functions belong to path more than to url, and it would make sense to export them on path.posix and path.win32 (and perhaps either re-export or move default version to path), rather than adding optional params or adding url.posix/url.win32.
Currently
url.fileURLtoPathproduces different output based on the operating system the program is ran on.I couldn't find an helper similar to
path.posixorpath.win32.