import.meta.dirname
返回上层文档
新增于: v20.11.0
稳定性: 1
.2 - 发布候选版
<string>
当前模块的目录名称。这与
import.meta.filename
的
path.dirname()
相同。
注意
:仅出现在
file:
模块中。