JSPM

minecraft-player

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q43342F
  • License MIT

Minecraft player information.

Package Exports

  • minecraft-player

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (minecraft-player) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

minecraft-player Travis CI Build Status

Minecraft player information.

NPM Badge

Install

npm install minecraft-player

Usage

const minecraftPlayer = require("minecraft-player");

(async () => {
    const { uuid } = await minecraftPlayer("Notch");

    console.log(uuid);
    //=> "c7da90d5-6a05-4217-b94a-7d427cbbcad8"
})();

API

minecraftPlayer(player)

player

Type: string

Username or UUID of the player.

Player data

uuid

Type: string

The player's UUID.

username

Type: string

The player's username.

usernameHistory

Type: array of objects

The player's username history in order from oldest to newest.

username

Type: string

The player's username.

changedAt

Doesn't exist for the oldest username.

Type: string

A timestamp of when the skin was set.

textures

Type: object

The player's skin information.

custom

Type: boolean

Whether the player has set a custom skin.

slim

Type: boolean

Whether the skin is using the slim (Alex) model.

skin.url

Type: string

A url which resolves as the player's skin.

skin.data

Type: string

The player's skin as a base64 encoded png.

createdAt

Type: string

A timestamp of when the player was created.