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

describeNumberOnesfunction

The cards as a sentence, the drawing's description.

Import it

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

Definition

function describeNumberOnes(source: NumberOnesSource, options?: Pick<NumberOnesOptions, "locale" | "words" | "nameStyle" | "precision">): string

Parameters

NameTypeDescription
sourceNumberOnesSource

The number ones.

options (optional)Pick<NumberOnesOptions, "locale" | "words" | "nameStyle" | "precision">

The language, the words, the name style and the precision.

Returns

string

The description.

Examples

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

console.log(describeNumberOnes({ cards: [{ category: "-60 kg", entry: { name: "Nakamura", points: 1240 } }] }));
Number ones. #1 in -60 kg, Nakamura, 1,240 points.

What it prints (run when this page was built)

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