Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 25, 2024 via pnpm

ci-info 4.0.0

Get details about the current Continuous Integration environment
Package summary
Share
0
issues
1
license
1
MIT
Package created
20 Oct 2016
Version published
29 Oct 2023
Maintainers
2
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
ci-info@4.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of ci-info 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does ci-info do?

The ci-info npm package is designed to provide information about the current Continuous Integration environment. This JavaScript library is capable of detecting a variety of CI servers such as AWS CodeBuild, AppVeyor, Azure Pipelines, Bamboo, and many more. If code is running on a CI server, ci-info will return the name of the CI server, and booleans indicating if the code is running on a CI server (ci.isCI) and if a PR is being tested (ci.isPR).

How do you use ci-info?

To use ci-info, you should first install it via npm using the command: npm install ci-info --save. After the package is installed, it can be used in your JavaScript code. Here's a simple usage example:

var ci = require('ci-info')

if (ci.isCI) {
  console.log('The name of the CI server is:', ci.name)
} else {
  console.log('This program is not running on a CI server')
}

In this example, ci-info is required and stored in the variable ci. It then checks if the code is running on a CI server. If it is, it logs the name of the CI server. If not, it logs that the program is not running on a CI server.

Where are the ci-info docs?

The documentation for ci-info can be found right in the readme file on its GitHub repository, accessible by visiting https://github.com/watson/ci-info. The readme provides all the necessary information about ci-info including its installation, usage, supported CI servers, various properties of the CI, and more. It's crucial to consult the documentation for a deep understanding of how the package works and how it can be effectively used in different CI environments.