js-runtime-environment

Identify which JavaScript environment your code is running in at runtime — Browser, Node.js, Bun, Deno, Electron, Workers, etc

Browse on unpkg