JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 25
  • Score
    100M100P100Q8982F
  • License ISC

A powerful Fortnite JavaScript API Wrapper

Package Exports

  • fort-api-js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fort-api-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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