diff options
Diffstat (limited to 'docs/examples/module_metadata.md')
-rw-r--r-- | docs/examples/module_metadata.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/examples/module_metadata.md b/docs/examples/module_metadata.md index 8d2d92b50..c58c82648 100644 --- a/docs/examples/module_metadata.md +++ b/docs/examples/module_metadata.md @@ -3,22 +3,22 @@ ## Concepts - [import.meta](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import.meta) - can provide information on the context of the module + can provide information on the context of the module. - The boolean [import.meta.main](https://doc.deno.land/builtin/stable#ImportMeta) will let - you know if the current module is the program entry point + you know if the current module is the program entry point. - The string [import.meta.url](https://doc.deno.land/builtin/stable#ImportMeta) - will give you the URL of the current module + will give you the URL of the current module. - The string [Deno.mainModule](https://doc.deno.land/builtin/stable#Deno.mainModule) will give you the URL of the main module entry point, i.e. the module invoked by - the deno runtime + the deno runtime. ## Example The example below uses two modules to show the difference between `import.meta.url`, `import.meta.main` and `Deno.mainModule`. In this example, -`module_a.ts` is the main module entry point +`module_a.ts` is the main module entry point: ```ts /** |