Skip to the content

Taisen Brackets対戦

Knockout brackets as SVG, from a list of ties.

Taisen (対戦, たいせん) is Japanese for a matchup: two sides facing each other. About the name

Contents

Reference · Ready-made formats for each league

Leaguetype

A league with a playoff format by era: nhl, nba, mlb, nfl, cfl, mls or worldcup.

Import it

import type { League } from "@johnmorrisdotca/taisen-brackets/presets";

Also exported from: @johnmorrisdotca/taisen-brackets

Definition

type League = "nhl" | "nba" | "mlb" | "nfl" | "cfl" | "mls" | "worldcup";

Examples

import { playoffFormat, type League } from "@johnmorrisdotca/taisen-brackets";

const league: League = "nhl";
console.log(playoffFormat(league, 2024)?.teams);
16

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/taisen-brackets 0.20.0.