Skip to main content

Function: makeLeagueModule()

makeLeagueModule(cfg): Record<string, WrapperFn>

Defined in: leagues/_make.ts:12

Build a league's cross-league ESPN surface: for each wrapper in the league's scopes, expose it under BOTH names, resolving to the same function:

  • espnNbaScoreboard(params) — camelCase, the idiomatic JS canonical name
  • espn_nba_scoreboard(params) — snake_case alias, for parity with the sportsdataverse-py / R packages. The JS analogue of sdv-py's make_league_module.

Parameters

cfg

LeagueConfig

Returns

Record<string, WrapperFn>