blob: edfa023724f1e1b615d7aa48e0a1b82836d3e802 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
---
name: Get the directory of the current file
---
Bun provides a handful of module-specific utilities on the [`import.meta`](/docs/api/import-meta) object.
```ts#/a/b/c.ts
import.meta.dir; // => "/a/b"
```
---
See [Docs > API > import.meta](/docs/api/import-meta) for complete documentation.
|