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