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