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 · Draw a bracket, a table or a road to the final

abbreviatefunction

A short name for a small box: the initials of a name of several words ("NYR"), else its first three letters; capitals.

Import it

import { abbreviate } from "@johnmorrisdotca/taisen-brackets";

Definition

function abbreviate(name: string): string

Parameters

NameTypeDescription
namestring

The team's name.

Returns

string

The abbreviation, in capitals.

Examples

import { abbreviate } from "@johnmorrisdotca/taisen-brackets";

console.log(abbreviate("Northern Owls"), abbreviate("Aurora"));
NO AUR

What it prints (run when this page was built)

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