Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cucumber/ci-environment

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cucumber/ci-environment

Detect CI Environment from environment variables

  • 7.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1M
decreased by-6.26%
Maintainers
2
Weekly downloads
 
Created

What is @cucumber/ci-environment?

@cucumber/ci-environment is a Node.js package designed to detect and provide information about the Continuous Integration (CI) environment in which your code is running. This can be useful for customizing behavior based on the CI environment, such as configuring test runners or reporting tools.

What are @cucumber/ci-environment's main functionalities?

Detect CI Environment

This feature allows you to detect the CI environment and retrieve metadata about it. The `getCIMetadata` function returns an object containing information such as the CI provider, build number, and other relevant details.

const { getCIMetadata } = require('@cucumber/ci-environment');
const ciMetadata = getCIMetadata();
console.log(ciMetadata);

Check if Running in CI

This feature allows you to check if the code is running in a CI environment. The `isCI` boolean flag can be used to conditionally execute code based on whether it is running in a CI environment.

const { isCI } = require('@cucumber/ci-environment');
if (isCI) {
  console.log('Running in a CI environment');
} else {
  console.log('Not running in a CI environment');
}

Other packages similar to @cucumber/ci-environment

Keywords

FAQs

Package last updated on 08 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc