blocksmc
    TypeScript icon, indicating that this package has built-in type declarations

    3.6.5 • Public • Published

    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

    Install

    npm i blocksmc

    DownloadsWeekly Downloads

    28

    Version

    3.6.5

    License

    Apache-2.0

    Unpacked Size

    26.1 kB

    Total Files

    21

    Last publish

    Collaborators

    • abadyx312