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
- Signup at fortnitetracker
- Navigate to the api page and generate a key
- Install fortapi
npm install fortnite.js --save
- 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