New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

epicgames-fortnite-client

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

epicgames-fortnite-client

The javascript client for Fortnite.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24
increased by71.43%
Maintainers
1
Weekly downloads
 
Created
Source

node-epicgames-fortnite-client

The javascript client for Fortnite.

Installation

npm i epicgames-fortnite-client

Example

const EGClient = require('epicgames-client').Client;
const FortniteClient = require('epicgames-fortnite-client').Client;

let eg = new EGClient({
    email: 'EMAIL',
    password: 'PASSWORD'
});

eg.init().then(async (success) => {
	
	if(success){
		
		if(await eg.login()){
			
            let fortnite = new FortniteClient(eg);

            if(await fortnite.init()){
                //`init` executing also login to account on which logged is `epicgames-client`
    
                let stats = await fortnite.getStatsBR('Kysune');
                console.log(stats);
    
            }
		
		}
	
	}
	
});

Constructor options

const FortniteClient = require('epicgames-fortnite-client').Client;
let fortnite = new FortniteClient({

	use_waiting_room: true, //false to ignore waiting room (epicgames load balancer)

	http: {
		//settings for lib https://github.com/request/request
	}

});

Methods

Generals

init()

Initialize client

login()

Login to an account.

setLanguage(language)

Sets language for client.

  • language {string} - Language Code Identified e.g. en-US, pl-PL (or pl)

getSubgames()

Returns an object with all subgames (e.g. Battle Royale, Save The World, Creative) and last modified time.

getRawBasicData()

Returns all basic data. That informations are received while start game.

refreshBasicData()

Refreshing all basic data. You can use this after change client's language.

getStoreCatalog()

Returns raw fortnite store catalog (items possible to buy e.g. starter kit, battle pass)

Battle Royale (BR)

getNewsBR()

Returns an object with list of news for subgame Battle Royale and last modified time.

getStatsBR(id[, time='alltime'])

Returns an object of statistics for the Battle Royale mode. An object is divided on platforms with objects, which is divided on game's modes (solo/duo/squad).

  • id {string} - account's id or display name
  • time {string} - weekly or alltime

getStoreFeaturedItems()

Returns list of store featured items

getStoreDailyItems()

Returns list of store daily items

getTournaments()

Returns an object with list of tournaments and last modified time.

getAllGameModes()

Returns an object with list of all game modes and last modified time.

Save The World (PVE)

getNewsPVE()

Returns an object with list of news for subgame Save The World and last modified time.

getWorldInfo()

Returns object with full info about locations, missions etc. You don't need bought subgame Save The World.

License

MIT License

Copyright (c) 2018 Kysune

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Keywords

FAQs

Package last updated on 12 Dec 2018

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