import.meta.dirname
稳定性: 1.2 - 发布候选
¥Stability: 1.2 - Release candidate
-
<string> 当前模块的目录名。这与
import.meta.filename
的path.dirname()
相同。¥<string> The directory name of the current module. This is the same as the
path.dirname()
of theimport.meta.filename
.
警告:仅存在于
file:
模块上。¥Caveat: only present on
file:
modules.