Skip to main content

isMainModule

@webda/utils


Function: isMainModule()

isMainModule(importMeta): boolean

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

Return true if the module identified by importMeta is the process entry point.

Symbolic links in process.argv[1] are resolved before comparison.

Parameters​

importMeta​

ImportMeta

The import.meta object of the calling module

Returns​

boolean

true when the calling module is the main entry point, false otherwise