Files
bun.sh/docs/guides/util/import-meta-dir.md
2024-09-10 15:11:16 -07:00

326 B

name
name
Get the directory of the current file

Bun provides a handful of module-specific utilities on the import.meta object.

import.meta.dir; // => "/a/b"

See Docs > API > import.meta for complete documentation.