Verwenden Sie Bun.fileURLToPath(), um eine file://-URL in einen absoluten Pfad zu konvertieren.
ts
Bun.fileURLToPath("file:///path/to/file.txt");
// => "/path/to/file.txt"Siehe Docs > API > Utils für weitere nützliche Utilities.