fort-api-js

2.1.8 • Public • Published

fortapi

A powerful and super light Fortnite stats API wrapper for Node.js

Setup and Installation

  1. Signup at fortnitetracker
  2. Navigate to the api page and generate a key
  3. Install fortapi npm install fortnite.js --save
  4. When using the wrapper, parse your generated key when creating the client

Examples

const fortnite = require('fortapi');
 
// Make sure you set your own key, otherwise it won't work!
// Check the README for more info on obtaining your key.
 
const client = new fortnite('my api key');
 
client.get('TheAdmin1014', fortnite.PC)
    .then(console.log) // Do stuff with the data
    .catch(console.error); // Catch if there is an error

Readme

Keywords

Package Sidebar

Install

npm i fort-api-js

Weekly Downloads

0

Version

2.1.8

License

ISC

Unpacked Size

24.6 kB

Total Files

13

Last publish

Collaborators

  • discord-lib