url

Purl
Bun

Symbol

ImportMeta.url

url: string

file:// url string for the current module.

console.log(import.meta.url);
"file:///Users/me/projects/my-app/src/my-app.ts"