{"_id":"@prisma/ci-info","_rev":"826832","name":"@prisma/ci-info","description":"Get details about the current Continuous Integration environment","dist-tags":{"latest":"2.1.2"},"maintainers":[{"name":"divyenduz","email":"divyendu.z@gmail.com"},{"name":"jolg42","email":"joel.galeran@gmail.com"},{"name":"madebysid","email":"me@madebysid.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"},{"name":"schickling","email":"schickling.j@gmail.com"}],"time":{"modified":"2021-09-13T09:11:03.000Z","created":"2020-01-21T17:16:49.349Z","2.1.2":"2020-07-21T10:10:36.320Z","2.1.1":"2020-01-21T17:16:49.349Z"},"users":{},"author":{"name":"Thomas Watson Steen","email":"w@tson.dk","url":"https://twitter.com/wa7son"},"repository":{"type":"git","url":"git+https://github.com/watson/ci-info.git"},"versions":{"2.1.2":{"name":"@prisma/ci-info","version":"2.1.2","description":"Get details about the current Continuous Integration environment","main":"index.js","types":"index.d.ts","devDependencies":{"clear-module":"^3.0.0","standard":"^12.0.1","tape":"^4.9.1"},"scripts":{"test":"standard --fix && standard && node test.js"},"repository":{"type":"git","url":"git+https://github.com/watson/ci-info.git"},"keywords":["ci","continuous","integration","test","detect"],"author":{"name":"Thomas Watson Steen","email":"w@tson.dk","url":"https://twitter.com/wa7son"},"license":"MIT","bugs":{"url":"https://github.com/watson/ci-info/issues"},"homepage":"https://github.com/watson/ci-info","coordinates":[55.778231,12.593179],"gitHead":"bb66533d0d00ffcaa11c554ad0bd9b12a9c96f2e","_id":"@prisma/ci-info@2.1.2","_nodeVersion":"12.16.1","_npmVersion":"6.13.6","dist":{"shasum":"3da64f54584bde0aaf4b42f298a6c63f025aeb3f","size":5417,"noattachment":false,"key":"/@prisma/ci-info/-/@prisma/ci-info-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@prisma/ci-info/download/@prisma/ci-info-2.1.2.tgz"},"maintainers":[{"name":"divyenduz","email":"divyendu.z@gmail.com"},{"name":"jolg42","email":"joel.galeran@gmail.com"},{"name":"madebysid","email":"me@madebysid.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"},{"name":"schickling","email":"schickling.j@gmail.com"}],"_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ci-info_2.1.2_1595326236230_0.6715045026188171"},"_hasShrinkwrap":false,"publish_time":1595326236320,"_cnpm_publish_time":1595326236320},"2.1.1":{"name":"@prisma/ci-info","version":"2.1.1","description":"Get details about the current Continuous Integration environment","main":"index.js","dependencies":{},"devDependencies":{"clear-module":"^3.0.0","standard":"^12.0.1","tape":"^4.9.1"},"scripts":{"test":"standard --fix && standard && node test.js"},"repository":{"type":"git","url":"git+https://github.com/watson/ci-info.git"},"keywords":["ci","continuous","integration","test","detect"],"author":{"name":"Thomas Watson Steen","email":"w@tson.dk","url":"https://twitter.com/wa7son"},"license":"MIT","bugs":{"url":"https://github.com/watson/ci-info/issues"},"homepage":"https://github.com/watson/ci-info","coordinates":[55.778231,12.593179],"gitHead":"15b5e396ce9de0f455b4ccc609d483df614f8187","_id":"@prisma/ci-info@2.1.1","_nodeVersion":"13.5.0","_npmVersion":"6.13.4","dist":{"shasum":"555f15f3c8f744885b62b931aedcd248d34a10fa","size":5177,"noattachment":false,"key":"/@prisma/ci-info/-/@prisma/ci-info-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@prisma/ci-info/download/@prisma/ci-info-2.1.1.tgz"},"maintainers":[{"name":"divyenduz","email":"divyendu.z@gmail.com"},{"name":"jolg42","email":"joel.galeran@gmail.com"},{"name":"madebysid","email":"me@madebysid.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"},{"name":"schickling","email":"schickling.j@gmail.com"}],"_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ci-info_2.1.1_1579627009136_0.23792724811587074"},"_hasShrinkwrap":false,"publish_time":1579627009349,"_cnpm_publish_time":1579627009349}},"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[![Build status](https://travis-ci.org/watson/ci-info.svg?branch=master)](https://travis-ci.org/watson/ci-info)\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 @prisma/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| [AWS CodeBuild](https://aws.amazon.com/codebuild/)                              | `ci.CODEBUILD`       | ????   |\n| [AppVeyor](http://www.appveyor.com)                                             | `ci.APPVEYOR`        | ✅   |\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| [Codeship](https://codeship.com)                                                | `ci.CODESHIP`        | ????   |\n| [Drone](https://drone.io)                                                       | `ci.DRONE`           | ✅   |\n| [dsari](https://github.com/rfinnie/dsari)                                       | `ci.DSARI`           | ????   |\n| [GitHub Actions](https://github.com/features/actions/)                          | `ci.GITHUB_ACTIONS`  | ✅   |\n| [GitLab CI](https://about.gitlab.com/gitlab-ci/)                                | `ci.GITLAB`          | ????   |\n| [GoCD](https://www.go.cd/)                                                      | `ci.GOCD`            | ????   |\n| [Hudson](http://hudson-ci.org)                                                  | `ci.HUDSON`          | ????   |\n| [Jenkins CI](https://jenkins-ci.org)                                            | `ci.JENKINS`         | ✅   |\n| [Magnum CI](https://magnum-ci.com)                                              | `ci.MAGNUM`          | ????   |\n| [Netlify CI](https://www.netlify.com/)                                          | `ci.NETLIFY`         | ✅   |\n| [Zeit Now](https://www.zeit.co/now)                                             | `ci.ZEIT_NOW`        | ✅   |\n| [Nevercode](http://nevercode.io/)                                               | `ci.NEVERCODE`       | ✅   |\n| [Sail CI](https://sail.ci/)                                                     | `ci.SAIL`            | ✅   |\n| [Semaphore](https://semaphoreci.com)                                            | `ci.SEMAPHORE`       | ✅   |\n| [Shippable](https://www.shippable.com/)                                         | `ci.SHIPPABLE`       | ✅   |\n| [Solano CI](https://www.solanolabs.com/)                                        | `ci.SOLANO`          | ✅   |\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\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\nDeprecated vendor constants that will be removed in the next major\nrelease:\n\n- `ci.TDDIUM` (Solano CI) This have been renamed `ci.SOLANO`\n\n## License\n\n[MIT](LICENSE)\n","_attachments":{},"homepage":"https://github.com/watson/ci-info","bugs":{"url":"https://github.com/watson/ci-info/issues"},"license":"MIT"}