Check if your code is running on Heroku
MIT License
Bot releases are visible (Hide)
Published by sindresorhus over 2 years ago
https://github.com/sindresorhus/is-heroku/compare/v2.0.0...v3.0.0
Check if the process is running inside a Docker container
Check if your package was installed globally
Check if the process is running in a Continuous Integration (CI) environment
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 your code is running on Travis
Check if the internet connection is up
Check if Electron is running in development