The URL to convert.
Convert a URL to a filesystem path.
A filesystem path.
If the URL is not a URL.
const path = Bun.fileURLToPath(new URL("file:///foo/bar.txt"));
console.log(path); // "/foo/bar.txt"
The URL to convert.
Generated using TypeDoc
Convert a URL to a filesystem path.
Returns
A filesystem path.
Throws
If the URL is not a URL.
Example