Skip to main content

Convert a file URL to an absolute path

还没翻译译自英文(bun.com)本页 3 段都还没译

Use Bun.fileURLToPath() to convert a file:// URL to an absolute path.

Bun.fileURLToPath("file:///path/to/file.txt");
// => "/path/to/file.txt"

See Utils.

번역 © 2026 fanyi.dev · 원문 © 2026 the Bun project (LICENSE.md names no copyright holder) (MIT)