3.6.5 • Published 5 years ago

blocksmc v3.6.5

Weekly downloads
29
License
Apache-2.0
Repository
github
Last release
5 years ago

npm install size Libraries.io dependency status for latest release

NPM

BlocksMC

A simple scraper & wrapper for BlocksMC!

Instalation

npm i blocksmc
// or
yarn add blocksmc

Example Usage

const { Blocks } = require('blocksmc');
const blocks = new Blocks();

blocks.player('iAbady').then(player => {
    console.log(player.games.map(g => `${g.game} ${g.stats.Deaths}`))
    console.log(player.rank)
    console.log(player.timePlayed)
});

blocks.top('sky-wars').then(leader => {
    console.log(leader);
})

Response Example

Player

player(username) --> 
rank: String,
timePlayed: String,
games: [
  {
 game: String,
 stats: {
     Points: Number,
     Wins: Number,
     Played: Number,
     Eggs?: Number,
     Blocks?: Number,
     Kills?: Number,
     FireWorks?: Number,
     Crates?: Number,
     DMs?: Number,
     Sponges?: Number,
     Beds?: Number,
     Rounds?: Number,
     Goals?: Number,
 }
  }
]

TOP

top(game) --> Array
3.6.5

5 years ago

3.6.4

5 years ago

3.6.2

5 years ago

3.6.1

5 years ago

3.6.0

5 years ago

3.5.8

5 years ago

3.5.6

5 years ago

3.2.5

5 years ago

3.2.3

5 years ago

3.2.2

5 years ago

3.2.1

5 years ago

3.2.0

5 years ago

3.1.9

5 years ago

3.1.7

5 years ago

3.1.6

5 years ago

3.1.5

5 years ago

3.1.4

5 years ago

3.1.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.4.3

5 years ago

2.3.3

5 years ago

2.3.2

5 years ago

1.3.2

5 years ago

1.2.2

5 years ago

1.1.2

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago