Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 301 Bytes

file-url-to-path.md

File metadata and controls

14 lines (10 loc) · 301 Bytes
name
Convert a file URL to an absolute path

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

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

See Docs > API > Utils for more useful utilities.