js-runtime-checker
v0.0.3
Published
This is an npm library that can retrieve the currently running JavaScript Runtime environment.
Downloads
6
Maintainers
Readme
js-runtime-checker
This is an npm library that can retrieve the currently running JavaScript Runtime environment.
Usage
Install:
npm install js-runtime-checker
Example:
import { getEnv } from 'js-runtime-checker';
console.log(getEnv()); // "deno" | "bun" | "nodejs" | "browser" | "unknown"
License
MIT