{
"_from": "ci-info@2.0.0",
"_id": "ci-info@2.0.0",
"_inBundle": false,
"_integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==",
"_location": "/npm/ci-info",
"_phantomChildren": {},
"_requested": {
"escapedName": "ci-info",
"fetchSpec": "2.0.0",
"name": "ci-info",
"raw": "ci-info@2.0.0",
"rawSpec": "2.0.0",
"registry": true,
"saveSpec": null,
"type": "version"
},
"_requiredBy": [
"#USER",
"/npm"
],
"_resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz",
"_shasum": "67a9e964be31a51e15e5010d58e6f12834002f46",
"_shrinkwrap": null,
"_spec": "ci-info@2.0.0",
"_where": "/Users/aeschright/code/cli",
"author": {
"email": "w@tson.dk",
"name": "Thomas Watson Steen",
"url": "https://twitter.com/wa7son"
},
"bugs": {
"url": "https://github.com/watson/ci-info/issues"
},
"bundleDependencies": false,
"coordinates": [
12.593179,
55.778231
],
"dependencies": {},
"deprecated": false,
"description": "Get details about the current Continuous Integration environment",
"devDependencies": {
"clear-require": "^1.0.1",
"standard": "^12.0.1",
"tape": "^4.9.1"
},
"homepage": "https://github.com/watson/ci-info",
"keywords": [
"ci",
"continuous",
"detect",
"integration",
"test"
],
"license": "MIT",
"main": "index.js",
"name": "ci-info",
"optionalDependencies": {},
"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[](https://www.npmjs.com/package/ci-info)\n[](https://travis-ci.org/watson/ci-info)\n[](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| [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| [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| [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",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/watson/ci-info.git"
},
"scripts": {
"test": "standard && node test.js"
},
"version": "2.0.0"
}