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