# Get the absolute path of the current file (/guides/util/import-meta-path)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 90 · updated: 2026-07-28 -->
Related: [Upgrade Bun to the latest version](/guides/util/upgrade.md), [Detect when code is executed with Bun](/guides/util/detect-bun.md), [Get the current Bun version](/guides/util/version.md), [Hash a password](/guides/util/hash-a-password.md), [Generate a UUID](/guides/util/javascript-uuid.md), [Encode and decode base64 data](/guides/util/base64.md)

Bun provides a handful of module-specific utilities on the [`import.meta`](/runtime/module-resolution#import-meta) object. Use `import.meta.path` to retrieve the absolute path of the current file.

```ts icon="/icons/typescript.svg" title="/a/b/c.ts"
import.meta.path; // => "/a/b/c.ts"
```

***

See [`import.meta`](/runtime/module-resolution#import-meta).
