Skip to content

lib, url: allow `options` for URL parsing in `fileURLtoPath` and `pathToFileURL`

Rodrigo Muino Tomonari requested to merge github/fork/RedYetiDev/patch-10 into main

This PR changes the fileURLtoPath / pathToFileURL functions to contain an options argument. Within the options argument, a user can set windows to true/false/undefined, which either parse the path/url as a Windows path, a Unix path, or the system default (respectively).

Fixes #51609 (closed)

Merge request reports

Loading