Checks whether this module is the process entrypoint.
The current module URL from import.meta.url.
import.meta.url
The executable script path from process.argv[1].
process.argv[1]
true when the current module path matches the invoked script.
true
Checks whether this module is the process entrypoint.