{"_id":"@cjser/is-in-ci","name":"@cjser/is-in-ci","dist-tags":{"latest":"2.0.0-cjser.2"},"versions":{"2.0.0-cjser.2":{"name":"@cjser/is-in-ci","version":"2.0.0-cjser.2","description":"Check if the process is running in a Continuous Integration (CI) environment","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.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","require":"./dist-cjser/index.cjs","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"},"types":"./index.d.ts","main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"2.0.0","cjserVersion":2,"original":{"name":"is-in-ci","version":"2.0.0","exports":{"types":"./index.d.ts","default":"./index.js"},"repository":"sindresorhus/is-in-ci","files":["index.js","index.d.ts","cli.js"],"scripts":{"test":"xo && CI=1 ava && tsc index.d.ts"}}},"_id":"@cjser/is-in-ci@2.0.0-cjser.2","gitHead":"0168e4aac54a1a9ca6f921419fa5ed9edb53ef4a","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-FIEH2n6jy1eAFlXJ1gvPQUtNpGgAWMclgWY/PALGnLYfIWSAfa3ZNMSkrcVnPG/Xph+85UnQevbH6r3p0aoj/w==","shasum":"e0f98254612d3bef2ecee1f185c687a08458a70e","tarball":"https://registry.npmjs.org/@cjser/is-in-ci/-/is-in-ci-2.0.0-cjser.2.tgz","fileCount":7,"unpackedSize":6269,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEhPgUX8ya7TQAXZInu5RtIKJG/VYMA06Kp3UVONht7/AiBtkpESjMyf6oNf/MaIpgNBy423TOWRpsG6LqSO6K6xzQ=="}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-in-ci_2.0.0-cjser.2_1778130641051_0.8919876824357418"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T05:10:40.974Z","2.0.0-cjser.2":"2026-05-07T05:10:41.223Z","modified":"2026-05-07T05:10:41.417Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Check if the process is running in a Continuous Integration (CI) environment","keywords":["ci","continuous","integration","environment","server","check","detect","determine","test","cli","cli-app"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","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\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/sindresorhus/is-in-ci\n","readmeFilename":"readme.md","_rev":"1-998895fa9663a82d48f2e71c75fb9744"}