electron-process-type (npm): Retrieve the process type running your code : 'node', 'browser', 'renderer' or 'webworker'.
Keywords: process|type|electron|environment|runtime|main|node|nodejs|browser|renderer|worker|webworker|sharedworker|serviceworker|workerthread