0.2.0
Deno module for checking which runtime the code is running in.
Repository
Current version released
3 years ago
Versions
which_runtime
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 "https://deno.land/x/which_runtime/mod.ts";
if (isNode) {
// do something
}
if (isDeno) {
// do something
}