1.0.18 • Published 1 year ago

pixelheads v1.0.18

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

pixelheads

GitHub release (latest SemVer) GitHub Build and publish npm package npm npm codecov

A library that makes it easy to retrieve skins and faces of minecraft players based on their uuid.

Usage

  1. Run npm install pixelheads
  2. Use one of the functions to retrieve the skin or the face as a base64-encoded string.

      import pixelheads from "pixelheads";
      
      // Returns the entire skin of the player as a base64-encoded string. 
      const playerSkin = pixelheads.getSkinAsBase64("uuid"); 
    
      // Returns the face of the player as a base64-encoded string.
      const playerFace = pixelheads.getFaceAsBase64("uuid"); 
  3. Use one of the return values, e.g. in an img-tag:

    <img src="'data:image/png;base64,' + playerFace" 
       alt="face of player"/>

Building

Prerequisites:

  • Git
  • Node.js and npm
  • TypeScript installed globally (npm install -g typescript)

Run the following commands:

git clone https://github.com/jojomatik/pixelheads
cd pixelheads
npm install

To build, run the following commands:

tsc

To pack the project as a tarball, run the following commands:

npm pack

Licensing

This project is licensed under the MIT License (MIT). See also LICENSE.

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15-beta.1

1 year ago

1.0.15

1 year ago

1.0.13-beta.2

1 year ago

1.0.12-beta.2

2 years ago

1.0.12-beta.1

2 years ago

1.0.14

1 year ago

1.0.13-beta.1

1 year ago

1.0.13

1 year ago

1.0.14-beta.1

1 year ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10-beta.1

2 years ago

1.0.9

2 years ago

1.0.10

2 years ago

1.0.8

2 years ago

1.0.8-beta.1

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.7-beta.1

2 years ago

1.0.6-beta.1

2 years ago

1.0.3-beta.1

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.2-beta.2

2 years ago

1.0.2-beta.1

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago