Module metadata

    • The boolean import.meta.main will let you know if the current module is the program entry point.
    • The string will give you the URL of the current module.

    Example

    ```ts, ignore /**

    • module_a.ts */ import { outputB } from “./module_b.ts”;

    outputA(); console.log(“”); outputB();

    Module B’s import.meta.url file:///home/alice/deno/module_b.ts Module B’s mainModule url file:///home/alice/deno/module_a.ts Is module B the main module via import.meta.main? false ```