本页还没有译文
本页 4 段还没译成日本語,下面显示的是英文原文。Get the absolute path to the current entrypoint
还没翻译译自英文(bun.com)本页 4 段都还没译
The Bun.main property contains the absolute path to the current entrypoint.
console.log(Bun.main);import "./foo.ts";The printed path is the file executed with bun run.
bun run index.ts/path/to/index.tsbun run foo.ts/path/to/foo.tsSee Utils.
AI 翻译查看英文原文