import.meta object. Use import.meta.main to check if the current file is the entrypoint of the current process.
See
import.meta.import.meta object. Use import.meta.main to check if the current file is the entrypoint of the current process.
import.meta.