Check if your code is running on Travis
MIT License
Bot releases are visible (Hide)
Published by sindresorhus 7 months ago
https://github.com/sindresorhus/is-travis/compare/v2.0.0...v3.0.0
Detect the indentation of code
Node.js `http.STATUS_CODES` ponyfill
Check if it's the first time the process is run
Check if something is a generator function
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 inside Windows Subsystem for Linux (Bash on Windows)
Check if the process is running in a Continuous Integration (CI) environment
Check whether a website is up or down
Check if the process is running inside a container (Docker/Podman)
Check if your package was installed globally
Check if a project is using Yarn
Check if your code is running on Heroku
Check if the process is running inside a Docker container
Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc