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