Module metadata
- import.meta can provide information on the context of the module.
- The string will give you the URL of the current module.
Example
If is located in /home/alice/deno
then the output of
is:
If is located in /home/alice/deno
then the output of
is:
本文档使用 全库网 构建