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

ci-parallel-vars

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ci-parallel-vars

Get CI environment variables for parallelizing builds

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
320K
increased by5.95%
Maintainers
1
Weekly downloads
 
Created
Source

ci-parallel-vars

Get CI environment variables for parallelizing builds

Install

yarn add ci-parallel-vars

Usage

const ciParallelVars = require('ci-parallel-vars');

console.log(ciParallelVars); // { index: 3, total: 10 } || null

Supports

If you want to add support for another pair, please open a pull request and add them to index.js and to this list.

  • Knapsack / TravisCI / GitLab - CI_NODE_INDEX/CI_NODE_TOTAL
  • CircleCI - CIRCLE_NODE_INDEX/CIRCLE_NODE_TOTAL
  • Bitbucket Pipelines - BITBUCKET_PARALLEL_STEP/BITBUCKET_PARALLEL_STEP_COUNT
  • Buildkite - BUILDKITE_PARALLEL_JOB/BUILDKITE_PARALLEL_JOB_COUNT
  • Semaphore - SEMAPHORE_CURRENT_JOB/SEMAPHORE_JOB_COUNT

One of these pairs must both be defined as numbers or ci-parallel-vars will be null.

Keywords

FAQs

Package last updated on 18 Jun 2020

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