Skip to main content

getFileName

@webda/utils


Function: getFileName()

getFileName(importMeta): string

Defined in: packages/utils/src/esm.ts:57

Derive the absolute file path of the current module from its import.meta.

Parameters​

importMeta​

ImportMeta

The import.meta object of the calling module

Returns​

string

The absolute pathname of the current module file

Throws​

When importMeta.url is not available