Check if your code is running on Travis
MIT License
Bot releases are hidden (Show)
Published by sindresorhus 7 months ago
https://github.com/sindresorhus/is-travis/compare/v2.0.0...v3.0.0
Check if the process is running in a Continuous Integration (CI) environment
Check if a project is using Yarn
Detect the indentation of code
Check if something is a generator function
Check if the process is running inside a Docker container
Node.js `http.STATUS_CODES` ponyfill
Check if your package was installed globally
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 as an npm or yarn script
Check if your code is running on Heroku
Check whether a website is up or down
Check whether a file can be executed
Check if the process is running inside a container (Docker/Podman)
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)