npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@rmshah/fixture-list-generator

v2.0.2

Published

A quick and easy generator for creating fixtures.

Readme

fixture-list-generator

A quick and easy-to-use generator for creating fixtures. It doesn't matter if it's a football or a cricket tournament or even an inter-collegiate debate competition, our fixture-list-generator will help you create meaningful fixtures for every type of competition. Using fixture-list-generator is fairly simple - all you need to provide is a list of names and an optional configuration and our package will handle the rest.

USAGE

  1. Install this package in your code using the following npm command:

    npm install fixture-list-generator
  2. Import the named method generate from our package in the file where you need to generate fixtures.

    import { generate } from 'fixture-list-generator';
  3. Provide a simple array with the names of the participants to the generate method.

    let teams = [
        'Manchester United',
        'Arsenal',
        'Liverpool',
        'Chelsea'
    ];
    
    generate(teams);
  4. The generate method also takes an optional second parameter for configurations. A list of configurations and their definitions are provided below.

```
let config = {
    randomise: false
}

generate(teams, config);
```

OUTPUT

The generate method will return two values in response:

  1. participants: It will return a list of participants and the opponents it should face over the entire tournament.
  2. rounds: It will return a list of all rounds and the pariticipants for every round.

A sample output for the above input will look as follows:

{
    "participants": {
        "Manchester United": [
            "Arsenal",
            "Chelsea",
            "Liverpool"
        ],
        "Arsenal": [
            "Manchester United",
            "Liverpool",
            "Chelsea"
        ],
        "Liverpool": [
            "Chelsea",
            "Arsenal",
            "Manchester United"
        ],
        "Chelsea": [
            "Liverpool",
            "Manchester United",
            "Arsenal"
        ]
    },
    "rounds": {
        "round1": {
            "players": [
                {
                    "player1": "Arsenal",
                    "player2": "Manchester United"
                },
                {
                    "player1": "Liverpool",
                    "player2": "Chelsea"
                }
            ]
        },
        "round2": {
            "players": [
                {
                    "player1": "Manchester United",
                    "player2": "Chelsea"
                },
                {
                    "player1": "Arsenal",
                    "player2": "Liverpool"
                }
            ]
        },
        "round3": {
            "players": [
                {
                    "player1": "Liverpool",
                    "player2": "Manchester United"
                },
                {
                    "player1": "Chelsea",
                    "player2": "Arsenal"
                }
            ]
        }
    }
}

CONFIGURATIONS

Configurations are useful to guide our code to give you the best results possible. Here are a list of configurations available:

As of v2.0.0, configurations are optional.

| Configuration name | Description | Values | | ---------- | ------ | ----- | | randomise | It is used for randomising the list of teams provided as a parameter. It is useful for scenarios where teams need to be randomly selected and not in the order that they are provided. | true (default value): It will randomise the list of teams/participants provided. false: It will generate fixtures in the order in which they are provided. | |

CHANGE LOG

We are continuously changing and modifying our package for faster operations and better results. Keep checking this changelog for the latest changes:

v2.0.0

Date: December 9, 2021 19:45:00 GMT+0530 (Indian Standard Time) Description: A major update involving a brand new algorithm and introduction to configurations.

v1.0.1

Date: September 17, 2021 Description: Bug resolution of the first participant in every tournament.

v1.0.0

Date: September 17, 2021 Description: Initial release of the package

DEVELOPER INFORMATION

This code is developed by Rushabh Mulraj Shah. To get in touch with the developer, you can contact him at [email protected].