
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
@types/is-ci
Advanced tools
TypeScript definitions for is-ci
@types/is-ci is a TypeScript type definition package for the is-ci library, which is used to detect if a code is running in a Continuous Integration (CI) environment.
Detect if running in CI
This feature allows you to check if your code is running in a CI environment. The isCI variable will be true if the code is running in a CI environment, and false otherwise.
const isCI = require('is-ci');
if (isCI) {
console.log('Running in a CI environment');
} else {
console.log('Not running in a CI environment');
}
List of CI environments
This feature provides additional information about the CI environment, such as whether it is a CI environment and the name of the CI service.
const isCI = require('is-ci');
console.log(isCI.isCI); // true or false
console.log(isCI.name); // Name of the CI environment, e.g., 'Travis CI'
ci-info is a library that provides information about the current Continuous Integration environment. It offers more detailed information compared to is-ci, such as the name of the CI service and whether it is a known CI service.
env-ci is a library that detects the CI environment and provides detailed information about it, including the branch name, commit SHA, and other environment-specific details. It is more comprehensive than is-ci and is useful for more complex CI/CD workflows.
npm install --save @types/is-ci
This package contains type definitions for is-ci (https://github.com/watson/is-ci).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-ci.
import { isCI } from "ci-info";
export = isCI;
These definitions were written by Arne Schubert, and Florian Imdahl.
FAQs
TypeScript definitions for is-ci
The npm package @types/is-ci receives a total of 308,253 weekly downloads. As such, @types/is-ci popularity was classified as popular.
We found that @types/is-ci demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.