1.0.1 • Published 2 years ago

@cimok/faceit.js v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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 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.