@futdados/soccer-data
TypeScript icon, indicating that this package has built-in type declarations

0.0.48 • Public • Published



Home - Documentation

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);

Readme

Keywords

none

Package Sidebar

Install

npm i @futdados/soccer-data

Weekly Downloads

2

Version

0.0.48

License

MIT

Unpacked Size

62.9 kB

Total Files

43

Last publish

Collaborators

  • leoruhland