{"name":"is-in-ci","version":"2.0.0","description":"Check if the process is running in a Continuous Integration (CI) environment","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-in-ci.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","bin":{"is-in-ci":"cli.js"},"exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && CI=1 ava && tsc index.d.ts"},"keywords":["ci","continuous","integration","environment","server","check","detect","determine","test","cli","cli-app"],"devDependencies":{"ava":"^6.4.1","typescript":"^5.9.2","xo":"^0.60.0"},"_id":"is-in-ci@2.0.0","gitHead":"7bc48bb08a4208a9564228b997bef6f034f0664b","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/is-in-ci/issues"},"homepage":"https://github.com/sindresorhus/is-in-ci#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-cFeerHriAnhrQSbpAxL37W1wcJKUUX07HyLWZCW1URJT/ra3GyUTzBgUnh24TMVfNTV2Hij2HLxkPHFZfOZy5w==","shasum":"e4b3471c555b47509a8311869c377c234967079f","tarball":"http://registry-npm.ywwl.com/is-in-ci/download/is-in-ci-2.0.0.tgz","fileCount":6,"unpackedSize":4015,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIB3FIC9VAF48znVUvzBBbn+LV3hFhuygA3LrK2o1C3c+AiEA82Ic47J/zCjMY4gkbJbwbmGrlQk7V9z7m+NUgoL8vZ8="}],"size":2122,"noattachment":false,"key":"/is-in-ci/-/is-in-ci-2.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-in-ci_2.0.0_1755430656360_0.27602755829543035"},"_hasShrinkwrap":false,"readme":"# is-in-ci\n\n> Check if the process is running in a [Continuous Integration](https://en.wikipedia.org/wiki/Continuous_integration) (CI) environment\n\n## Install\n\n```sh\nnpm install is-in-ci\n```\n\n## Usage\n\n```js\nimport isInCi from 'is-in-ci';\n\nif (isInCi) {\n\tconsole.log('Running in a CI environment');\n}\n```\n\nIt looks for these environment variables: `CI` and `CONTINUOUS_INTEGRATION`.\n\n## CLI\n\n```sh\nis-in-ci && echo 'Running in a CI environment'\n```\n\nExits with code `0` in CI environments and `1` otherwise.\n\n## FAQ\n\n### How can I add a CI service?\n\nRequest the CI service to include the `CI` environment variable. Most already do.\n\n### How is this different from [`is-ci`](https://github.com/watson/is-ci)?\n\nThe `is-ci` package attempts to detect every CI service, which is unsustainable. It also has a higher risk of false-positives. For example, it detects the environment variable `RUN_ID` as CI-specific, although other services could use it. Constant updates for new CIs create version fragmentation, resulting in inconsistent behavior across dependent packages. Pushing for CI services to use a standardized CI environment variable is a more robust solution.\n\n## Related\n\n- [is-inside-container](https://github.com/sindresorhus/is-inside-container) - Check if the process is running inside a container\n- [is-interactive](https://github.com/sindresorhus/is-interactive) - Check if stdout or stderr is interactive\n","publish_time":1755430656590,"_cnpm_publish_time":1755430656590,"dist-tags":{"latest":"2.0.0"}}