Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ftn-client

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ftn-client

A REST client for Fortnite which allows requesting game news, streams and service status from Epic Game's game servers.

  • 0.1.2-alpha
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

Fortnite Client

npm version npm downloads CodeQL

: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', // default language
  region: 'EU' // default region
})

(async () => {
  // Start the client
  await client.start();
  
  // Get BR News
  const BRnews = client.BRNews;
  for(const thisNew of BRnews.news) {
    if(thisNew.stream !== null) {
      // Download MP4 Buffer
      // Default client language and 720p resolution
      const video = await thisNew.stream.downloadStream();
      
      // Create MP4 file
      fs.writeFileSync(thisNew.stream.fileName, video);
    }
  }
})()

Get token (TS)

import { Client } from 'ftn-client';

const client = new Client();

(async () => {
  // Start the client
  await client.start();
  
  // Get client Auth an log the EG1 token
  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

Keywords

FAQs

Package last updated on 17 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc