@futdados/soccer-data
v0.0.48
Published
<p align="center"> <img src="https://user-images.githubusercontent.com/6702424/80216211-00ef5280-863e-11ea-81de-59f3a3d4b8e4.png"> </p> <p align="center"> <i></i> <br> <br> <a href="https://github.com/leoruhland/@futdados/soccer-data
Downloads
14
Readme
Install / Import
$ npm install --save @futdados/soccer-data
import { ranking } from "@futdados/soccer-data";
Specific imports:
import { generateRanking, DataQuery } from "@futdados/soccer-data";
const query: DataQuery = {
fields: {
time: "Time",
p: "P",
j: "J",
v: "V",
e: "E",
d: "D",
aprov: "%",
gp: "GP",
gc: "GC",
sg: "SG",
mgc: "MGC",
mgp: "MGP",
},
homeVisitor: "home", // false | 'home' | 'visitor'
halfSeason: false, // false | 'first' | 'second'
limit: 6, // false | number
sortBy: "date", // false | 'date'
};
const ranking = ranking(teams, games, query);