Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

krosmaga

1.0.6 • Public • Published

Transparent Krosmaga

Krosmaga Wrapper

Rank view of players from Krosmaga for Node JS !

Install

npm install krosmaga

Syntaxe

krosmaga.getUser( pseudo [, callback ])
krosmaga.getUserSeason( pseudo [, season [, callback ]])

Examples

const krosmaga = require("krosmaga")
 
// With callback
krosmaga.getUser("Ghom",console.log)
 
// With promise
krosmaga.getUser("Ghom")
    .then(console.log)
    .catch(console.error)

Return

{
    "global": {
        "position": 686,
        "elo": 1508,
        "win": 2519,
        "lose": 3108
    },
    "lastSeason": {
        "position": 180,
        "rank": 21,
        "win": 27,
        "lose": 4
    },
    "pseudo": "Ghom",
    "image": "https://s.ankama.com/www/static.ankama.com/web-avatar/1127.png",
    "description": "Ghom n'a pas encore rédigé de description personnalisée",
    "connection": "Dernière connexion : 17/05/2019",
    "inscription": "Inscrit depuis le 22/06/2013",
    "connectionTimestamp": 1560722400000,
    "inscriptionTimestamp": 1374444000000
}

Install

npm i krosmaga

DownloadsWeekly Downloads

1

Version

1.0.6

License

ISC

Unpacked Size

5.56 kB

Total Files

4

Last publish

Collaborators

  • avatar