0.1.6 • Published 1 year ago

espn-fantasy-baseball v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

ESPN Fantasy Baseball

ESPN Fantasy Baseball Actions

Usage

import { League } from 'espn-fantasy-baseball'

// Initialize League
const league = new League(<LEAGUE ID>, {'espn_s2': <ESPN_S2 COOKIE>, swid: <SWID COOKIE>})
await league.init()

// Provides access to league based actions within this league
league.teams()

// Provides access to player based actions within this league
league.players()

// Get a list of slightly different league teams info
league.getLeagueTeams()

// Get a list of all league member info
league.getLeagueMembers()

// View all the matchups for that week
league.getWeeklyMatchups()

Resources

Authenticating for private leagues:
https://github.com/cwendt94/espn-api/discussions/150
Inspired by:
https://github.com/cwendt94/espn-api

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.2

1 year ago

0.1.3

1 year ago

0.1.1

3 years ago

0.1.0

3 years ago