{"_id":"ci-parallel-vars","_rev":"269694","name":"ci-parallel-vars","description":"Get CI environment variables for parallelizing builds","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"time":{"modified":"2021-06-03T17:18:06.000Z","created":"2018-05-25T20:06:07.200Z","1.0.1":"2020-06-18T19:51:21.172Z","1.0.0":"2018-05-25T20:06:07.200Z"},"users":{},"author":{"name":"Jamie Kyle","email":"me@thejameskyle.com"},"repository":{"type":"git","url":"git+https://github.com/jamiebuilds/ci-parallel-vars.git"},"versions":{"1.0.1":{"name":"ci-parallel-vars","version":"1.0.1","description":"Get CI environment variables for parallelizing builds","main":"index.js","repository":{"type":"git","url":"git+https://github.com/jamiebuilds/ci-parallel-vars.git"},"author":{"name":"Jamie Kyle","email":"me@thejameskyle.com"},"license":"MIT","keywords":["ci","env","vars","index","total","parallel","builds","tests","travis","circle","buildkite","bitbucket","pipelines","knapsack"],"scripts":{"test":"ava"},"devDependencies":{"ava":"^0.25.0","flow-bin":"^0.73.0","spawndamnit":"^2.0.0"},"gitHead":"994940e4882bdddf046a5c076b49d700449e4b38","bugs":{"url":"https://github.com/jamiebuilds/ci-parallel-vars/issues"},"homepage":"https://github.com/jamiebuilds/ci-parallel-vars#readme","_id":"ci-parallel-vars@1.0.1","_nodeVersion":"14.0.0","_npmVersion":"6.14.4","dist":{"shasum":"e87ff0625ccf9d286985b29b4ada8485ca9ffbc2","size":2202,"noattachment":false,"key":"/ci-parallel-vars/-/ci-parallel-vars-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ci-parallel-vars/download/ci-parallel-vars-1.0.1.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ci-parallel-vars_1.0.1_1592509881051_0.9666294558883737"},"_hasShrinkwrap":false,"publish_time":1592509881172,"_cnpm_publish_time":1592509881172},"1.0.0":{"name":"ci-parallel-vars","version":"1.0.0","description":"Get CI environment variables for parallelizing builds","main":"index.js","repository":{"type":"git","url":"git+https://github.com/jamiebuilds/ci-parallel-vars.git"},"author":{"name":"Jamie Kyle","email":"me@thejameskyle.com"},"license":"MIT","keywords":["ci","env","vars","index","total","parallel","builds","tests","travis","circle","buildkite","bitbucket","pipelines","knapsack"],"files":["index.js"],"scripts":{"test":"ava"},"devDependencies":{"ava":"^0.25.0","flow-bin":"^0.73.0","spawndamnit":"^2.0.0"},"gitHead":"81919d104739b47e0790fa911fd888cd30bab879","bugs":{"url":"https://github.com/jamiebuilds/ci-parallel-vars/issues"},"homepage":"https://github.com/jamiebuilds/ci-parallel-vars#readme","_id":"ci-parallel-vars@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"af97729ed1c7381911ca37bcea263d62638701b3","size":2075,"noattachment":false,"key":"/ci-parallel-vars/-/ci-parallel-vars-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ci-parallel-vars/download/ci-parallel-vars-1.0.0.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ci-parallel-vars_1.0.0_1527278767120_0.9070975156474799"},"_hasShrinkwrap":false,"publish_time":1527278767200,"_cnpm_publish_time":1527278767200}},"readme":"# ci-parallel-vars\n\n> Get CI environment variables for parallelizing builds\n\n## Install\n\n```\nyarn add ci-parallel-vars\n```\n\n## Usage\n\n```js\nconst ciParallelVars = require('ci-parallel-vars');\n\nconsole.log(ciParallelVars); // { index: 3, total: 10 } || null\n```\n\n## Supports\n\n> If you want to add support for another pair, please open a pull request and\n> add them to `index.js` and to this list.\n\n- [Knapsack] / [TravisCI] / [GitLab] - `CI_NODE_INDEX`/`CI_NODE_TOTAL`\n- [CircleCI] - `CIRCLE_NODE_INDEX`/`CIRCLE_NODE_TOTAL`\n- [Bitbucket Pipelines] - `BITBUCKET_PARALLEL_STEP`/`BITBUCKET_PARALLEL_STEP_COUNT`\n- [Buildkite] - `BUILDKITE_PARALLEL_JOB`/`BUILDKITE_PARALLEL_JOB_COUNT`\n- [Semaphore] - `SEMAPHORE_CURRENT_JOB`/`SEMAPHORE_JOB_COUNT`\n\nOne of these pairs must both be defined as numbers or `ci-parallel-vars` will\nbe `null`.\n\n[Knapsack]: http://docs.knapsackpro.com/ruby/knapsack#info-about-env-variables\n[TravisCI]: https://docs.travis-ci.com/user/speeding-up-the-build/#Parallelizing-RSpec%2C-Cucumber-and-Minitest-on-multiple-VMs\n[GitLab]: https://docs.gitlab.com/ee/ci/yaml/#parallel\n[CircleCI]: https://circleci.com/docs/1.0/parallel-manual-setup/#using-environment-variables\n[Bitbucket Pipelines]: https://confluence.atlassian.com/bitbucket/parallel-steps-946606807.html\n[Buildkite]: https://buildkite.com/docs/builds/parallel-builds\n[Semaphore]: https://semaphoreci.com/docs/available-environment-variables.html#variables-exported-in-builds-and-deploys\n","_attachments":{},"homepage":"https://github.com/jamiebuilds/ci-parallel-vars#readme","bugs":{"url":"https://github.com/jamiebuilds/ci-parallel-vars/issues"},"license":"MIT"}