epl-fixtures
v1.1.0
Published
Fixtures for Premier League clubs
Downloads
16
Maintainers
Readme
epl-fixtures
Fixtures for Premier League clubs (Premier League, FA Cup, Capital One Cup, Champions League, Europa League)
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