Is there any way, as of current, to check if my script is being called as a module in deno?

后端 未结 0 914
迷失自我
迷失自我 2020-11-21 04:13

As the title says. For example, I can check for the following in node:

if(process.main===module) console.log(\'This is          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题