Miss any of our Open RFC calls?Watch the recordings here! »

epl-fixtures

1.1.0 • Public • Published

epl-fixtures

Fixtures for Premier League clubs (Premier League, FA Cup, Capital One Cup, Champions League, Europa League)

Build Status npm version npm version npm version

Installation

npm install epl-fixtures --save

Usage

Get all upcoming matches

const Fixtures = require('epl-fixtures');
 
new Fixtures().all(function (err, matches) {
  console.log(matches);
});
//=> [
//=>   {
//=>     time: '20:00',
//=>     clubs: [ 'Liverpool', 'Chelsea' ],
//=>     location: 'Anfield',
//=>     date: 'Wednesday 11 May 2016',
//=>     competition: 'Barclays Premier League'
//=>   },
//=>   {
//=>     time: '15:00',
//=>     clubs: [ 'Arsenal', 'Aston Villa' ],
//=>     location: 'Emirates Stadium',
//=>     date: 'Sunday 15 May 2016',
//=>     competition: 'Barclays Premier League'
//=>   }
//=> ]

Get upcoming matches for specific club

const Fixtures = require('epl-fixtures');
 
new Fixtures().club('man city', function (err, matches) {
  console.log(matches);
});
//=> [
//=>   {
//=>     time: '19:45',
//=>     clubs: [ 'Newcastle', 'Man City' ],
//=>     location: 'St. James\' Park',
//=>     date: 'Tuesday 19 April 2016',
//=>     competition: 'Barclays Premier League'
//=>   },
//=>   {
//=>     time: '12:45',
//=>     clubs: [ 'Man City', 'Stoke' ],
//=>     location: 'Etihad Stadium',
//=>     date: 'Saturday 23 April 2016',
//=>     competition: 'Barclays Premier League'
//=>   }
//=> ]

License

MIT © Daniel Eckermann

Install

npm i epl-fixtures

DownloadsWeekly Downloads

2

Version

1.1.0

License

MIT

Last publish

Collaborators

  • avatar