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 which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc
Check if the process is running inside a container (Docker/Podman)
Check if your package was installed globally
Node.js `http.STATUS_CODES` ponyfill
Check if your code is running as an npm or yarn script
Check whether a website is up or down
Check if the process is running inside a Docker container
Check if the process is running in a Continuous Integration (CI) environment
Check whether a file can be executed
Check if it's the first time the process is run
Check if something is a generator function
Check if your code is running on Heroku
Detect the indentation of code
Check if a project is using Yarn
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)