node-cod
v1.2.2
Published
A simple NodeJS API for Call of Duty
Downloads
15
Readme
How to install
npm i node-cod
How to use
// bo3, iw, wwii
// psn, xbl, steam
// core, hc, arena
// alltime, monthly, weekly
// career, war (Team Deathmatch), dm (Free-For-All), conf (Kill Confirmed), ctf (Capture The Flag), sd (Search & Destroy), dom (Domination), ball (Gridiron), hp (Hardpoint), 1v1, raid (War)
const User = require('node-cod')
// game, platform, username
User.profile('wwii', 'psn', 'Consisttt').then(e =>{
console.log(e)
})
// game, platform, username, days
User.recentmatches('wwii', 'psn', 'Consisttt', '7').then(e =>{
console.log(e)
})
// game, platform, username, time, type, mode
User.leaderboard('wwii', 'psn', 'Consisttt', 'monthly', 'core', 'war').then(e =>{
console.log(e)
})
Features
Profile Returns the profile of the given player
Leaderboard Returns the leaderboard stats of the given player
Recent Matchs Returns the lastest played games of the given player
More to come soon!