node-cod

1.2.2 • Public • Published

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!

/node-cod/

    Package Sidebar

    Install

    npm i node-cod

    Weekly Downloads

    11

    Version

    1.2.2

    License

    MIT

    Unpacked Size

    3.46 kB

    Total Files

    3

    Last publish

    Collaborators

    • uniixx