1.0.0 • Published 2 years ago

@fborges2002/faceitjs v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

A simple wrapper of faceit API in js.

Package is not on npm yet!

Install

 npm install faceitjs

or

yarn add faceitjs

How to use start using it?

const Faceit = require("faceitjs");
const faceit = new Faceit("ServerSideApiKey", "ClientSideApiKey");

How to get info from a player?

faceit.getPlayer("yourFaceitName").then((response) =>{
        console.log(response)
    }).catch((err) =>{
        console.error(err);
    })

Errors:

The errors given when axios try to make the call are returned for the catch.

1.0.0

2 years ago