1.2.2 • Published 6 years ago

node-cod v1.2.2

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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!

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago