@mineapi/sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@mineapi/sdk

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

Readme

Keywords

Package Sidebar

Install

npm i @mineapi/sdk

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

13.7 kB

Total Files

21

Last publish

Collaborators

  • loiren
  • clqu