{"name":"ci-info","version":"4.3.0","keywords":["ci","continuous","integration","test","detect"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"ci-info@4.3.0","maintainers":[{"name":"watson","email":"w@tson.dk"},{"name":"sibiraj-s","email":"kap9xb3d5@mozmail.com"}],"contributors":[{"url":"https://github.com/sibiraj-s","name":"Sibiraj"}],"homepage":"https://github.com/watson/ci-info","bugs":{"url":"https://github.com/watson/ci-info/issues"},"dist":{"shasum":"c39b1013f8fdbd28cd78e62318357d02da160cd7","tarball":"http://registry-npm.ywwl.com/ci-info/download/ci-info-4.3.0.tgz","fileCount":7,"integrity":"sha512-l+2bNRMiQgcfILUi33labAZYIWlH1kWDp+ecNo5iisRKrbm0xcRyCww71/YU0Fkw0mAFpz9bJayXPjey6vkmaQ==","signatures":[{"sig":"MEUCIQDKO3oZmfnEPYzb9nYayytCUKZBYfeYnvpTVcMhgYRo5AIgIzuWuAH/RqqNgtgeW2kfrBxKeXHH1TycjVsSLKcwiyM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":29353,"size":8042,"noattachment":false,"key":"/ci-info/-/ci-info-4.3.0.tgz"},"main":"index.js","type":"commonjs","engines":{"node":">=8"},"funding":[{"url":"https://github.com/sponsors/sibiraj-s","type":"github"}],"gitHead":"688b9c25d246ee129ddd49f8e83449031f886ab6","scripts":{"test":"standard && node test.js","build":"node sort-vendors.js && node create-typings.js","prepare":"husky install || true","lint:fix":"standard --fix"},"typings":"index.d.ts","_npmUser":{"name":"sibiraj-s","actor":{"name":"sibiraj-s","type":"user","email":"kap9xb3d5@mozmail.com"},"email":"kap9xb3d5@mozmail.com"},"repository":{"url":"git+https://github.com/watson/ci-info.git","type":"git"},"_npmVersion":"11.4.2","description":"Get details about the current Continuous Integration environment","directories":{},"_nodeVersion":"22.16.0","_hasShrinkwrap":false,"devDependencies":{"tape":"^5.9.0","husky":"^9.1.7","publint":"^0.3.12","standard":"^17.1.2","clear-module":"^4.1.2"},"_npmOperationalInternal":{"tmp":"tmp/ci-info_4.3.0_1751773643856_0.3106556706631909","host":"s3://npm-registry-packages-npm-production"},"readme":"# ci-info\n\nGet details about the current Continuous Integration environment.\n\nPlease [open an\nissue](https://github.com/watson/ci-info/issues/new?template=ci-server-not-detected.md)\nif your CI server isn't properly detected :)\n\n[![npm](https://img.shields.io/npm/v/ci-info.svg)](https://www.npmjs.com/package/ci-info)\n[![Tests](https://github.com/watson/ci-info/workflows/Tests/badge.svg)](https://github.com/watson/ci-info/actions)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n\n## Installation\n\n```bash\nnpm install ci-info --save\n```\n\n## Usage\n\n```js\nvar ci = require('ci-info')\n\nif (ci.isCI) {\n  console.log('The name of the CI server is:', ci.name)\n} else {\n  console.log('This program is not running on a CI server')\n}\n```\n\n## Supported CI tools\n\nOfficially supported CI servers:\n\n| Name                                                                            | Constant                | isPR |\n| ------------------------------------------------------------------------------- | ----------------------- | ---- |\n| [Agola CI](https://agola.io/)                                                   | `ci.AGOLA`              | ✅   |\n| [Alpic](https://alpic.ai/)                                                      | `ci.ALPIC`              | 🚫   |\n| [Appcircle](https://appcircle.io/)                                              | `ci.APPCIRCLE`          | ✅   |\n| [AppVeyor](http://www.appveyor.com)                                             | `ci.APPVEYOR`           | ✅   |\n| [AWS CodeBuild](https://aws.amazon.com/codebuild/)                              | `ci.CODEBUILD`          | ✅   |\n| [Azure Pipelines](https://azure.microsoft.com/en-us/services/devops/pipelines/) | `ci.AZURE_PIPELINES`    | ✅   |\n| [Bamboo](https://www.atlassian.com/software/bamboo) by Atlassian                | `ci.BAMBOO`             | 🚫   |\n| [Bitbucket Pipelines](https://bitbucket.org/product/features/pipelines)         | `ci.BITBUCKET`          | ✅   |\n| [Bitrise](https://www.bitrise.io/)                                              | `ci.BITRISE`            | ✅   |\n| [Buddy](https://buddy.works/)                                                   | `ci.BUDDY`              | ✅   |\n| [Buildkite](https://buildkite.com)                                              | `ci.BUILDKITE`          | ✅   |\n| [CircleCI](http://circleci.com)                                                 | `ci.CIRCLE`             | ✅   |\n| [Cirrus CI](https://cirrus-ci.org)                                              | `ci.CIRRUS`             | ✅   |\n| [Cloudflare Pages](https://pages.cloudflare.com/)                               | `ci.CLOUDFLARE_PAGES`   | 🚫   |\n| [Cloudflare Workers](https://pages.cloudflare.com/)                             | `ci.CLOUDFLARE_WORKERS` | 🚫   |\n| [Codefresh](https://codefresh.io/)                                              | `ci.CODEFRESH`          | ✅   |\n| [Codeship](https://codeship.com)                                                | `ci.CODESHIP`           | 🚫   |\n| [Drone](https://drone.io)                                                       | `ci.DRONE`              | ✅   |\n| [dsari](https://github.com/rfinnie/dsari)                                       | `ci.DSARI`              | 🚫   |\n| [Earthly CI](https://earthly.dev/)                                              | `ci.EARTHLY`            | 🚫   |\n| [Expo Application Services](https://expo.dev/eas)                               | `ci.EAS`                | 🚫   |\n| [Gerrit CI](https://www.gerritcodereview.com)                                   | `ci.GERRIT`             | 🚫   |\n| [GitHub Actions](https://github.com/features/actions/)                          | `ci.GITHUB_ACTIONS`     | ✅   |\n| [GitLab CI](https://about.gitlab.com/gitlab-ci/)                                | `ci.GITLAB`             | ✅   |\n| [Gitea Actions](https://about.gitea.com/)                                       | `ci.GITEA_ACTIONS`      | 🚫  |\n| [GoCD](https://www.go.cd/)                                                      | `ci.GOCD`               | 🚫   |\n| [Google Cloud Build](https://cloud.google.com/build)                            | `ci.GOOGLE_CLOUD_BUILD` | 🚫   |\n| [Harness CI](https://www.harness.io/products/continuous-integration)            | `ci.HARNESS`            | 🚫   |\n| [Heroku](https://www.heroku.com)                                                | `ci.HEROKU`             | 🚫   |\n| [Hudson](http://hudson-ci.org)                                                  | `ci.HUDSON`             | 🚫   |\n| [Jenkins CI](https://jenkins-ci.org)                                            | `ci.JENKINS`            | ✅   |\n| [LayerCI](https://layerci.com/)                                                 | `ci.LAYERCI`            | ✅   |\n| [Magnum CI](https://magnum-ci.com)                                              | `ci.MAGNUM`             | 🚫   |\n| [Netlify CI](https://www.netlify.com/)                                          | `ci.NETLIFY`            | ✅   |\n| [Nevercode](http://nevercode.io/)                                               | `ci.NEVERCODE`          | ✅   |\n| [Prow](https://docs.prow.k8s.io/)                                               | `ci.PROW`               | 🚫   |\n| [ReleaseHub](https://releasehub.com/)                                           | `ci.RELEASEHUB`         | 🚫   |\n| [Render](https://render.com/)                                                   | `ci.RENDER`             | ✅   |\n| [Sail CI](https://sail.ci/)                                                     | `ci.SAIL`               | ✅   |\n| [Screwdriver](https://screwdriver.cd/)                                          | `ci.SCREWDRIVER`        | ✅   |\n| [Semaphore](https://semaphoreci.com)                                            | `ci.SEMAPHORE`          | ✅   |\n| [Sourcehut](https://sourcehut.org/)                                             | `ci.SOURCEHUT`          | 🚫   |\n| [Strider CD](https://strider-cd.github.io/)                                     | `ci.STRIDER`            | 🚫   |\n| [TaskCluster](http://docs.taskcluster.net)                                      | `ci.TASKCLUSTER`        | 🚫   |\n| [TeamCity](https://www.jetbrains.com/teamcity/) by JetBrains                    | `ci.TEAMCITY`           | 🚫   |\n| [Travis CI](http://travis-ci.org)                                               | `ci.TRAVIS`             | ✅   |\n| [Vela](https://go-vela.github.io/docs/)                                         | `ci.VELA`               | ✅   |\n| [Vercel](https://vercel.com/)                                                   | `ci.VERCEL`             | ✅   |\n| [Visual Studio App Center](https://appcenter.ms/)                               | `ci.APPCENTER`          | 🚫   |\n| [Woodpecker](https://woodpecker-ci.org/)                                        | `ci.WOODPECKER`         | ✅   |\n\n## API\n\n### `ci.name`\n\nReturns a string containing name of the CI server the code is running on.\nIf CI server is not detected, it returns `null`.\n\nDon't depend on the value of this string not to change for a specific\nvendor. If you find your self writing `ci.name === 'Travis CI'`, you\nmost likely want to use `ci.TRAVIS` instead.\n\n### `ci.isCI`\n\nReturns a boolean. Will be `true` if the code is running on a CI server,\notherwise `false`.\n\nSome CI servers not listed here might still trigger the `ci.isCI`\nboolean to be set to `true` if they use certain vendor neutral\nenvironment variables. In those cases `ci.name` will be `null` and no\nvendor specific boolean will be set to `true`.\n\n### `ci.isPR`\n\nReturns a boolean if PR detection is supported for the current CI server. Will\nbe `true` if a PR is being tested, otherwise `false`. If PR detection is\nnot supported for the current CI server, the value will be `null`.\n\n### `ci.<VENDOR-CONSTANT>`\n\nA vendor specific boolean constant is exposed for each support CI\nvendor. A constant will be `true` if the code is determined to run on\nthe given CI server, otherwise `false`.\n\nExamples of vendor constants are `ci.TRAVIS` or `ci.APPVEYOR`. For a\ncomplete list, see the support table above.\n\n## Disable CI Checks\n\nTo disable CI checks and vendor assertion, set the environment variable\n\n```\nCI=false\n```\n\n## Ports\n\nci-info has been ported to the following languages\n\n| Language | Repository |\n|----------|------------|\n| Go       | https://github.com/hofstadter-io/cinful |\n| Rust     | https://github.com/sagiegurari/ci_info |\n| Kotlin   | https://github.com/cloudflightio/ci-info |\n\n## License\n\n[MIT](LICENSE)\n","publish_time":1751773644047,"_cnpm_publish_time":1751773644047,"dist-tags":{"latest":"4.5.0"}}