A Node.js wrapper of fortniteapi.com
npm install awesome-fortnite-api --save
yarn add awesome-fortnite-api
const ForniteClient = require("awesome-fortnite-api").ForniteClient;
const client = new ForniteClient();
client.setKey(process.env.FORTNITE_APIKEY);
client.user.id("Ninja").then(res => console.log(res));Output should be '4735ce9132924caf8a5b17789b40f79c'
import { ForniteClient } from 'awesome-fortnite-api';
const client = new ForniteClient();
client.setKey(process.env.FORTNITE_APIKEY);
client.user.id("Ninja").then(res => console.log(res));Output should be '4735ce9132924caf8a5b17789b40f79c'
npm run test