deno.com

property Require.main

The Module object representing the entry script loaded when the Node.js process launched, or undefined if the entry point of the program is not a CommonJS module.

Type #

Module | undefined