1.40.0 • Published 4 years ago
fortnitejsc v1.40.0
fortnitejsc
This library was mixed into a big library, epicgames-fortnite-client
and node-epicgames-client
Interact with fortnite's client, using javascript.
Last Update (2/29/2020)
- Added more graphql values
- New values in launcher account, library, unlinkedPlatforms, coupons and timeIngames, these are all from the new graphql values
- Added in http sendGraphql(url, data, headers), using for the new graphql values
- Removed requires that require the two libs
Example
const { Client, Fortnite } = require('fortnitejsc');
const { email, password } = require('../../config');
let client = new Client({
email: email,
password: password,
});
client.init().then(async (success) => {
if(!success)
throw new Error('Cannot initialize EpicGames launcher.');
var fortnite = await client.login();
let eg = fortnite.launcher
if(!fortnite)
throw new Error('Cannot login on EpicGames account.')
const br = await fortnite.runSubGame(Fortnite.ESubGame.BattleRoyale);
});
Credit
- Terbau
- Kysune
- Kekistanz
Do you need help?
Check our discord server: https://discord.gg/HxGfuEx