Skip to content

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

License

Notifications You must be signed in to change notification settings

dsherret/which-runtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

which-runtime

documentation

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 "jsr:@david/which-runtime@0.2";

if (isNode) {
  // do something
}

if (isDeno) {
  // do something
}

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published