Skip to main content

property ImportMeta.filename

The full absolute path and filename of the current module, with symlinks resolved. This is the same as the url.fileURLToPath() of the import.meta.url. Caveat: only local modules support this property. Modules not using the file: protocol will not provide it.

Type #

string

你找到了你需要的东西吗?

隐私政策