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

helldivers2-api

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

helldivers2-api

An API wrapper for Helldivers 2

  • 1.0.13
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Helldivers 2 API

ESLint

This project aims to create an API wrapper for Helldivers 2.
I have been playing the game a lot since it is out, and I wanted to try and build something around it.

Currently, there is no way to get access to player data, but we're not done!

Features

  • Get current war id
  • Get war statistics
  • Get war info
  • Get war news feed
  • Get war summary (galaxy & planet statistics)
  • Get war main order
  • Get war leaderboards
  • Player endpoints
  • Global statistics endpoints

Usage example

Simply import the module and call the available methods. All of them return promises.

import helldivers2 from "helldivers2-api";

const currentWarId = await helldivers2.getCurrentWarId();
const warInfo = await helldivers2.getWarInfo(currentWarId);

console.log('War started on ' + warInfo.startDate);

const newsFeed = await helldivers2.getWarNewsFeed(currentWarId);

newsFeed.forEach((article) => {
    console.log(article.message);
});

// ...

Contributing

If you're interested in reverse-engineering and you want to contribute to this project, don't be afraid to submit a PR or use the discussion feed.

If you want to chat with me, get in touch using my email address or Discord: php_sensei

© Edouard Courty - 2024

Keywords

FAQs

Package last updated on 29 Mar 2024

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