Package Exports
- node-football-data
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-football-data) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
⚽️ node-football-data
This is a simple wrapper around the football-data.org API for NodeJS. It is only a very rough first version created on a Sunday, so maybe take it with a pinch of salt :)
(Please note, that this is for fooball, not handball with an egg as a ball :-))
Installation
npm install node-football-data --sExample usage
//Initialize
var FootballData = require('node-football-data');
var fd = FootballData('APIKEY');
//Get the first match of the euros
fd.getLeagugeFixtures(424).then(function(res) {
var fixtures = res;
console.log(fixtures.fixtures[0].homeTeamName + " vs " + fixtures.fixtures[0].awayTeamName);
}).catch(function(err) {
console.log(err);
})
License
MIT