/faceit.js

FaceIT.com Javascript Wrapper with Types

Primary LanguageTypeScript

FaceIT.js - FaceIT.com API Wrapper

This is not an Official FaceIT Package!

TODO:

  • Create a error parser.
  • Create a custom logger.

Install

Coming Soon..

npm install @cimok/faceit.js

Usage

To use faceit.js you will need to generate an API key on the FaceIT Developer Website and replace your_api_key with it:

// Javascript
const FACEIT = require("faceit.js");
// Typescript
import FACEIT from "faceit.js";
const FaceIT = new FACEIT(`your-api-key`);

You will now be able to test if your API key is correct by using the following function:

console.log(await FaceIT.testKey());

If you get a response of true your API key is valid. If you get a response of false your API key is invalid.