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

call-of-duty-nodejs

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

call-of-duty-nodejs

A simple wrapper to fetch public Call of Duty game stats data

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Call of Duty Stats API Node Wrapper

A simple wrapper to fetch public Call of Duty game stats data.

Note: This is far from perfect, and not all use-cases are covered. There seem to be gaps in the data on the Call of Duty side as well. This has been developed to fit a specific, narrow use-case for the time being.

Usage

Installation

yarn add call-of-duty-nodejs
import {
  getFullStats,
  getPlayerOnLeaderboards,
  Games,
  Platforms,
  WWIILeaderboardData,
  WWIIStatData,
  } from 'call-of-duty-nodejs';

getFullStats<WWIIStatData>(Games.BlackOps3, Platforms.XBL, 'usernameHere').then(results => {
  // results here will be of type ResponseData<WWIIStatData>
});

getPlayerOnLeaderboards<WWIILeaderboardData>(Games.BlackOps3, Platforms.XBL, 'usernameHere').then(results => {
  // results here will be of type LeaderboardResponse<WWIIStatData>
});

Each game has different data, so pass the corresponding data interface into the data fetching functions.

BO3BO4WWII
BO3LeaderboardDataBO4LeaderboardDataWWIILeaderboardData
BO3StatDataBO4StatDataWWIIStatData

Please see lib/interfaces and lib/constants for more information regarding what can be passed in and expected back.

Contributions

There is a lot of room for improvement in this library currently. Please feel free to help out and submit a pull request.

Keywords

FAQs

Package last updated on 28 Oct 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