{"_id":"is-in-ci","_rev":"3-32d1fa1f9d89a6e231b8c20001db7341","name":"is-in-ci","dist-tags":{"latest":"2.0.0"},"versions":{"0.1.0":{"name":"is-in-ci","version":"0.1.0","keywords":["ci","continuous","integration","environment","server","check","detect","determine","test","cli","cli-app"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"is-in-ci@0.1.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/is-in-ci#readme","bugs":{"url":"https://github.com/sindresorhus/is-in-ci/issues"},"bin":{"is-in-ci":"cli.js"},"dist":{"shasum":"5e07d6a02ec3a8292d3f590973357efa3fceb0d3","tarball":"https://registry.npmjs.org/is-in-ci/-/is-in-ci-0.1.0.tgz","fileCount":6,"integrity":"sha512-d9PXLEY0v1iJ64xLiQMJ51J128EYHAaOR4yZqQi8aHGfw6KgifM3/Viw1oZZ1GCVmb3gBuyhLyHj0HgR2DhSXQ==","signatures":[{"sig":"MEQCIDpVl7I1SqnXJjlvQEe2kOuhpNUhUoYxPsWMa40NPrK1AiAMp+S6la8KoQihRxId30Y9w7RqUM5lvfWQXxxoaUrOJA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3939},"type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"d23e407a789632af136399aec6d617d895d801e9","scripts":{"test":"xo && CI=1 ava && tsc index.d.ts"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/is-in-ci.git","type":"git"},"_npmVersion":"9.2.0","description":"Check if the process is running in a Continuous Integration (CI) environment","directories":{},"_nodeVersion":"20.9.0","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.56.0","ava":"^5.3.1","typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/is-in-ci_0.1.0_1698431566987_0.4567344679094181","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"is-in-ci","version":"1.0.0","keywords":["ci","continuous","integration","environment","server","check","detect","determine","test","cli","cli-app"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"is-in-ci@1.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/is-in-ci#readme","bugs":{"url":"https://github.com/sindresorhus/is-in-ci/issues"},"bin":{"is-in-ci":"cli.js"},"dist":{"shasum":"9a86bbda7e42c6129902e0574c54b018fbb6ab88","tarball":"https://registry.npmjs.org/is-in-ci/-/is-in-ci-1.0.0.tgz","fileCount":6,"integrity":"sha512-eUuAjybVTHMYWm/U+vBO1sY/JOCgoPCXRxzdju0K+K0BiGW0SChEL1MLC0PoCIR1OlPo5YAp8HuQoUlsWEICwg==","signatures":[{"sig":"MEUCIQCZe8v7e1MBkJ36fZC0UH7uHW6rFURhmhYdUnzT9bHZCwIgI1FUP1lwUn2jfmf9sIo04bhpd+bQtTy7uwNB7j1+x0s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4072},"type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"411a4f4ca892057120429c4a1a2cb831f7123fab","scripts":{"test":"xo && CI=1 ava && tsc index.d.ts"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/is-in-ci.git","type":"git"},"_npmVersion":"10.6.0","description":"Check if the process is running in a Continuous Integration (CI) environment","directories":{},"sideEffects":false,"_nodeVersion":"18.20.2","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.56.0","ava":"^5.3.1","typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/is-in-ci_1.0.0_1721993592585_0.4120482856026013","host":"s3://npm-registry-packages"}},"2.0.0":{"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":"https://registry.npmjs.org/is-in-ci/-/is-in-ci-2.0.0.tgz","fileCount":6,"unpackedSize":4015,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIB3FIC9VAF48znVUvzBBbn+LV3hFhuygA3LrK2o1C3c+AiEA82Ic47J/zCjMY4gkbJbwbmGrlQk7V9z7m+NUgoL8vZ8="}]},"_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}},"time":{"created":"2023-10-27T18:32:46.986Z","modified":"2025-08-17T11:37:36.769Z","0.1.0":"2023-10-27T18:32:47.260Z","1.0.0":"2024-07-26T11:33:12.830Z","2.0.0":"2025-08-17T11:37:36.590Z"},"bugs":{"url":"https://github.com/sindresorhus/is-in-ci/issues"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","homepage":"https://github.com/sindresorhus/is-in-ci#readme","keywords":["ci","continuous","integration","environment","server","check","detect","determine","test","cli","cli-app"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-in-ci.git"},"description":"Check if the process is running in a Continuous Integration (CI) environment","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"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","readmeFilename":"readme.md"}