Fortnite Client
:warning: This repo is in alpha phase !
Install: npm install ftn-client
Infos
The main purpose of this library is to provide the basic services of Fortnite, without having Epic account or a dedicated token for your client like fnbr.js
This library is therefore less complete but suddenly lighter to perform basic tasks or complete some tests
Usage Example
Download News Streams (TS)
import { Client } from 'ftn-client';
import fs from 'fs';
const client = new Client({
language: 'en',
region: 'EU'
})
(async () => {
await client.start();
const BRnews = client.BRNews;
for(const thisNew of BRnews.news) {
if(thisNew.stream !== null) {
const video = await thisNew.stream.downloadStream();
fs.writeFileSync(thisNew.stream.fileName, video);
}
}
})()
Get token (TS)
import { Client } from 'ftn-client';
const client = new Client();
(async () => {
await client.start();
const auth = client.auth;
console.log(auth.access_token);
})()
More detailed examples in javascript are presents in the examples folder
Documentation
Documentation available soon...
Contact