Gathering detailed insights and metrics for ci-info
Gathering detailed insights and metrics for ci-info
Gathering detailed insights and metrics for ci-info
Gathering detailed insights and metrics for ci-info
@types/ci-info
Stub TypeScript definitions entry for ci-info, which provides its own types definitions
unplugin-info
Export build information as virutal module
@cypress/commit-info
Collects Git commit info from CI or from CLI
@prisma/ci-info
Get details about the current Continuous Integration environment
Get details about the current Continuous Integration environment
npm install ci-info
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.7
Supply Chain
100
Quality
79.9
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
10,270,343,321
Last Day
3,433,638
Last Week
61,111,166
Last Month
263,567,901
Last Year
2,682,015,120
MIT License
352 Stars
198 Commits
54 Forks
8 Watchers
1 Branches
31 Contributors
Updated on Jun 27, 2025
Minified
Minified + Gzipped
Latest Version
4.2.0
Package Id
ci-info@4.2.0
Unpacked Size
28.24 kB
Size
7.79 kB
File Count
7
NPM Version
11.2.0
Node Version
22.14.0
Published on
Mar 09, 2025
Cumulative downloads
Total Downloads
Last Day
-9.6%
3,433,638
Compared to previous day
Last Week
-8.3%
61,111,166
Compared to previous week
Last Month
4.6%
263,567,901
Compared to previous month
Last Year
16.6%
2,682,015,120
Compared to previous year
5
Get details about the current Continuous Integration environment.
Please open an issue if your CI server isn't properly detected :)
1npm install ci-info --save
1var ci = require('ci-info') 2 3if (ci.isCI) { 4 console.log('The name of the CI server is:', ci.name) 5} else { 6 console.log('This program is not running on a CI server') 7}
Officially supported CI servers:
Name | Constant | isPR |
---|---|---|
Agola CI | ci.AGOLA | ✅ |
Appcircle | ci.APPCIRCLE | ✅ |
AppVeyor | ci.APPVEYOR | ✅ |
AWS CodeBuild | ci.CODEBUILD | ✅ |
Azure Pipelines | ci.AZURE_PIPELINES | ✅ |
Bamboo by Atlassian | ci.BAMBOO | 🚫 |
Bitbucket Pipelines | ci.BITBUCKET | ✅ |
Bitrise | ci.BITRISE | ✅ |
Buddy | ci.BUDDY | ✅ |
Buildkite | ci.BUILDKITE | ✅ |
CircleCI | ci.CIRCLE | ✅ |
Cirrus CI | ci.CIRRUS | ✅ |
Cloudflare Pages | ci.CLOUDFLARE_PAGES | 🚫 |
Codefresh | ci.CODEFRESH | ✅ |
Codeship | ci.CODESHIP | 🚫 |
Drone | ci.DRONE | ✅ |
dsari | ci.DSARI | 🚫 |
Earthly CI | ci.EARTHLY | 🚫 |
Expo Application Services | ci.EAS | 🚫 |
Gerrit CI | ci.GERRIT | 🚫 |
GitHub Actions | ci.GITHUB_ACTIONS | ✅ |
GitLab CI | ci.GITLAB | ✅ |
Gitea Actions | ci.GITEA_ACTIONS | 🚫 |
GoCD | ci.GOCD | 🚫 |
Google Cloud Build | ci.GOOGLE_CLOUD_BUILD | 🚫 |
Harness CI | ci.HARNESS | 🚫 |
Heroku | ci.HEROKU | 🚫 |
Hudson | ci.HUDSON | 🚫 |
Jenkins CI | ci.JENKINS | ✅ |
LayerCI | ci.LAYERCI | ✅ |
Magnum CI | ci.MAGNUM | 🚫 |
Netlify CI | ci.NETLIFY | ✅ |
Nevercode | ci.NEVERCODE | ✅ |
Prow | ci.PROW | 🚫 |
ReleaseHub | ci.RELEASEHUB | 🚫 |
Render | ci.RENDER | ✅ |
Sail CI | ci.SAIL | ✅ |
Screwdriver | ci.SCREWDRIVER | ✅ |
Semaphore | ci.SEMAPHORE | ✅ |
Sourcehut | ci.SOURCEHUT | 🚫 |
Strider CD | ci.STRIDER | 🚫 |
TaskCluster | ci.TASKCLUSTER | 🚫 |
TeamCity by JetBrains | ci.TEAMCITY | 🚫 |
Travis CI | ci.TRAVIS | ✅ |
Vela | ci.VELA | ✅ |
Vercel | ci.VERCEL | ✅ |
Visual Studio App Center | ci.APPCENTER | 🚫 |
Woodpecker | ci.WOODPECKER | ✅ |
ci.name
Returns a string containing name of the CI server the code is running on.
If CI server is not detected, it returns null
.
Don't depend on the value of this string not to change for a specific
vendor. If you find your self writing ci.name === 'Travis CI'
, you
most likely want to use ci.TRAVIS
instead.
ci.isCI
Returns a boolean. Will be true
if the code is running on a CI server,
otherwise false
.
Some CI servers not listed here might still trigger the ci.isCI
boolean to be set to true
if they use certain vendor neutral
environment variables. In those cases ci.name
will be null
and no
vendor specific boolean will be set to true
.
ci.isPR
Returns a boolean if PR detection is supported for the current CI server. Will
be true
if a PR is being tested, otherwise false
. If PR detection is
not supported for the current CI server, the value will be null
.
ci.<VENDOR-CONSTANT>
A vendor specific boolean constant is exposed for each support CI
vendor. A constant will be true
if the code is determined to run on
the given CI server, otherwise false
.
Examples of vendor constants are ci.TRAVIS
or ci.APPVEYOR
. For a
complete list, see the support table above.
ci-info has been ported to the following languages
Language | Repository |
---|---|
Go | https://github.com/hofstadter-io/cinful |
Rust | https://github.com/sagiegurari/ci_info |
Kotlin | https://github.com/cloudflightio/ci-info |
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 2/30 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More