Skip to main content

Function: teams()

teams(league?, opts?): Promise<readonly Team[]>

Defined in: packages/sdvplot/src/teams.ts:24

All teams for one league, or every league (in LEAGUES order) when omitted.

Parameters​

league?​

"aaf" | "ahl" | "ajhl" | "bchl" | "cchl" | "cebl" | "cfb" | "cfl" | "chl" | "cricket" | "easl" | "echl" | "f1" | "fiba" | "gojhl" | "iihf" | "kijhl" | "lba" | "mbb" | "mhl" | "milb" | "mjhl" | "mlb" | "nba" | "nbagl" | "nbl" | "ncaa_baseball" | "ncaa_mhockey" | "ncaa_softball" | "ncaa_whockey" | "nfl" | "nhl" | "nojhl" | "ohl" | "ojhl" | "phf" | "pwhl" | "qmjhl" | "sjhl" | "soccer" | "sphl" | "ufl" | "usfl" | "ushl" | "vijhl" | "wbb" | "whl" | "wnba" | "xfl"

opts?​

TeamsOptions = {}

Returns​

Promise<readonly Team[]>

Example​

import { teams } from "@sportsdataverse/sdvplot";

await teams("cfb", { includeConferences: true });