Const
deno runtime.
since deno also supports process
for node compatibility, you will want to check for deno runtime before checking for node runtime.
bunjs runtime.
since bun also supports process
for node compatibility, you will want to check for bun runtime before checking for node runtime.
nodejs runtime.
chrome-extension runtime.
since the window
context is also available in chrome extensions, it is better to check for this runtime before checking for client-web-page runtime.
firefox (or any non-chromium) extension runtime.
since the window
context is also available in chrome extensions, it is better to check for this runtime before checking for client-web-page runtime.
web-browser runtime.
worker-script runtime.
javascript runtime enums.