How sindresorhus/is-in-ci works
is-in-ci is a small Node.js utility that checks whether either standardized CI environment variable is present with a value other than "0" or "false". Applications can use the resulting boolean directly, or invoke the CLI, which exits with status 0 in CI and 1 otherwise. The runtime implementation and CLI are excerpted; the application-facing and shell behavior is documented in the README.
Main entry points: cli.js CLI · index.js CI detector
Components 5
Other components
- Process environment
- CI detector
index.js - Node application
- CLI
cli.js - Shell caller
Connections 5
- Process environment → CI detector: reads variables
index.js - CI detector → Node application: returns boolean
readme.md - CLI → CI detector: imports and checks
cli.js - Shell caller → CLI: invokes
readme.md - CLI → Shell caller: exits with status
cli.js