Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback


deno doc

Deno module for checking which runtime the code is running in.

This may be useful in some extreme scenarios when using dnt. Ideally do not use this and feature test instead.

import { isDeno, isNode } from "";

if (isNode) {
  // do something

if (isDeno) {
  // do something