File SystemUtilities
Get the path to an executable bin file
Bun.which finds the absolute path of an executable file, like the which command on Unix-like systems.
Convert an absolute path to a file URL
Use Bun.pathToFileURL() to convert an absolute path to a file:// URL.
Get the directory of the current file
Bun provides a handful of module-specific utilities on the import.meta object. Use import.meta.dir to retrieve the absolute path to the directory containing the