Skip to main content

Function: logoUrl()

logoUrl(team, league, o?): Promise<string | undefined>

Defined in: packages/sdvplot/src/marks.ts:106

Archive URL of a team's logo (or wordmark, markType) for the season, loading the league first; undefined for an unknown team (the resolver warns) or when no mark of that type is archived (one warning).

Parameters​

team​

Value

league​

"aaf" | "ahl" | "cfb" | "cricket" | "echl" | "mbb" | "milb" | "mlb" | "nba" | "nbagl" | "ncaa_baseball" | "ncaa_mhockey" | "ncaa_softball" | "ncaa_whockey" | "nfl" | "nhl" | "ohl" | "phf" | "pwhl" | "qmjhl" | "soccer" | "ufl" | "usfl" | "ushl" | "wbb" | "whl" | "wnba" | "xfl"

o?​

LogoUrlOptions = {}

Returns​

Promise<string | undefined>

Example​

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

await logoUrl("KC", "nfl", { markType: "wordmark" });