Check if the process is running inside a container (Docker/Podman)
MIT License
Bot releases are hidden (Show)
Published by sindresorhus over 1 year ago
🦄
Check if your code is running on Heroku
The Sindre Sorhus CLI
Check if the process is running as root user, for example, one started with `sudo`
Check whether a file can be executed
Check if the process is running in a Continuous Integration (CI) environment
Check if your code is running on Travis
Debug your Unstated containers with ease
Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc
Check if Electron is running in development
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
Check if it's the first time the process is run
Check if a process is running
Check if the process is running inside a Docker container
Check if stdout or stderr is interactive
Check if your code is running as an npm or yarn script