D
Deno
B
Deno
β’
4y ago
β’
2 replies
Blockzilla
Possible to check of a file is being run as worker?
if
(
import
.
meta
.main) {
main
()
}
if
(
import
.
meta
.main) {
main
()
}
is there a way to disable calling
main()
main()
if the file is being run as worker
Deno
Join
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No