Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 1.57 KB

README.md

File metadata and controls

59 lines (44 loc) · 1.57 KB

Do you need my help? Visit our Discord server.

NPM Downloads License

Node Version: 16.16.0

Installation

npm i @mineapi/sdk --save
# or
yarn add @mineapi/sdk

Usage

// CJS
// const { getSkin, getProfile, getCape, getServer, getUUID, getBust, getBody, getHead, Achievement  } = require("@mineapi/sdk");

// ESM
import { getSkin, getProfile, getCape, getServer, getUUID, getBust, getBody, getHead } from "@mineapi/sdk";

(async () => {
    const skin = await getSkin("clquu");
    console.log(skin);

    const profile = await getProfile("clquu");
    console.log(profile);

    const cape = await getCape("clquu", "mojang");
    console.log(cape);

    const server = await getServer("mc.hypixel.net");
    console.log(server);

    const uuid = await getUUID("clquu");
    console.log(uuid);

    const bust = await getBust("clquu");
    console.log(bust);

    const body = await getBody("clquu");
    console.log(body);

    const head = await getHead("clquu");
    console.log(head);

    const achievement = new Achievement({ title: "Test", description: "sdk test", icon: "blockOfDiamond" }).create();
    console.log(image); // Return: Buffer

    const icons = Achievement.getIcons();
    console.log(icons);
})();

Developed with ❤️ by MineAPI