Skip to content

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.

Bun von www.bunjs.com.cn bearbeitet