This package has been deprecated

Author message:

ThunderAPI is no longer supported by the developer, usage is strongly discouraged.

thunderapi
TypeScript icon, indicating that this package has built-in type declarations

0.7.1 • Public • Published

ThunderAPI

A node.js scraper to get profile and squadron data from War Thunder

About

ThunderAPI is a simple, promise-based data scraper for the War Thunder site to get all kinds of data, including player and squadron info. Additionally, it makes full use of ES2017's async/await functionality for clear, concise code that is simple to write and easy to comprehend.

Features

  • Fetching player info
  • Fetching squadron info
  • Getting news info
  • Getting update info

Install

Node.js v8 or higher is required.

npm install thunderapi

To install the development branch (please note that this may not be stable):

npm install thunderstats/thunderapi

Documentation for the master branch can be found here.

Example usage

const ThunderAPI = require("thunderapi");
// Create a new instance of ThunderAPI
const thunderAPI = new ThunderAPI();
 
// The player can be any in-game player. In this example,
// we'll get the profile of the player Abinavski, and log
// the title he set.
thunderAPI.getPlayer("Abinavski")
  // We handle the data returned here, in this case
  // by logging the title the player has set.
  .then(user => console.log("Title:", data.title))
  // If an error occurred, we catch it here!
  .catch(err => console.error("Oh no, an error occurred!\n", err));

Documentation

View the documentation here.

Contributing

If you wish to contribute to ThunderAPI, you are free to do so! Before getting started, please read the contribution guidelines first.

Support

If you encounter any problems using the ThunderAPI, want to leave a feature suggestion or just want a gentle nudge in the right direction, feel free to join our official Discord server!

Discord

Package Sidebar

Install

npm i thunderapi

Weekly Downloads

1

Version

0.7.1

License

Apache-2.0

Unpacked Size

77.9 kB

Total Files

19

Last publish

Collaborators

  • modzdev