Skip to content
 
 

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mojang API

This type script module allows you do download skins and capes from Minecraft Players using api.mojang.com

import { getUser, getProfile, getTextures, getSkin, getCape } from "./index.js";

const [skin,cape] = await getUser("Offroaders123")
  .then(getProfile)
  .then(getTextures)
  .then(textures => {
    if (textures === null){
      throw new Error("No textures were found for this player!");
    }
    return Promise.all([
      getSkin(textures),
      getCape(textures)
    ]);
  });

For more information please visit: wiki.vg/Mojang_API

About

TS Module to download Minecraft Player's Skins

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages