JSPM

@xituru/round-robin

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q26734F
  • License MIT

A simple and fast round robin scheduler.

Package Exports

  • @xituru/round-robin
  • @xituru/round-robin/dist/cjs/index.js
  • @xituru/round-robin/dist/esm/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@xituru/round-robin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Round Robin

npm package version number Actions Status License

Round robin match scheduler

  • No limitation in numbers
  • Each contestant meets every other participant

Installation

NPM

$ npm install @xituru/round-robin

Yarn

$ yarn add @xituru/round-robin

Browser via CDN

<script src="https://unpkg.com/@xituru/round-robin"></script>

Usage

Node.js

const { RoundRobin } = require('@xituru/round-robin')

const schedule = RoundRobin(['P1', 'P2', 'P3', 'P4'])

ES6

import { RoundRobin } from '@xituru/round-robin'

const schedule = RoundRobin(['P1', 'P2', 'P3', 'P4'])

TS

import { RoundRobin } from '@xituru/round-robin'

const schedule: [string, string][] = RoundRobin<string>(['P1', 'P2', 'P3', 'P4'])

Browser

Install using CDN

<script>
  const schedule = window.RoundRobin(['P1', 'P2', 'P3', 'P4'])
</script>