Env type Get the type of environment the script is running in. Install npm install env-type Usage const envType = require("env-type"); envType//=> 'node' (When using NodeJS) API envType Type: "browser" | "worker" | "node" | undefined The type of environment the script is running in.