ffe-api
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

ffe-api

npm npm

This api is made to interact with the FFE (Fédération Française des échecs) website.

It is written in typescript and each method is typed.

installation

With npm

npm install ffe-api

With yarn

yarn add ffe-api

Usage

Methods

  • fetchDayEvents
  • fetchMonthEvents
  • fetchEventDetails
  • fetchPlayer

Example

import api from 'ffe-api'

const main = async () => {
    const events = await api.fetchDayEvents(3, 10, 2020);
    console.log(events);

    const eventDetails = await api.fetchEventDetails(events[0]);
    console.log(eventDetails);

    const player = await api.fetchPlayer("Fabrice", "Moracchini");
    console.log(player);
}

Contribute

If you have any issues or want new feature feel free to create an issue.

/ffe-api/

    Package Sidebar

    Install

    npm i ffe-api

    Weekly Downloads

    2

    Version

    1.2.2

    License

    MIT

    Unpacked Size

    95.2 kB

    Total Files

    42

    Last publish

    Collaborators

    • noe_rls