rankcard
TypeScript icon, indicating that this package has built-in type declarations

1.2.8 • Public • Published

rankcard

Make your rank cards stand out with rankcard!

npm install rankcard

Example Code

const { RankCard } = require("rankcard");
const fs = require("fs");

const rankcard = RankCard({
    name: "AikooNee",
    level: "Level 7",
    color: "#FFC0CB", // auto
    shape: "circle", // square
    // Optional status: "dnd", // online, dnd, offline, idle, streaming
    brightness: "50", // 0 to 100
    avatar: "https://imgur.com/uNeB2S6.png",
    progress: "33",
    rank: "1",
    requiredXp: "4900",
    currentXp: "1600",
    showXp: true
}).then(b => {
    fs.writeFileSync("rankcard.png", b);
console.log("Done!")
});

Using In Discord Bot

const { AttachmentBuilder } = require("discord.js");
const { RankCard } = require("rankcard");

const rankcard = await RankCard({
    name: "AikooNee",
    level: "Level 7",
    color: "#FFC0CB", // auto
    shape: "circle", // square
    // Optional status: "dnd", // online, dnd, offline, idle, streaming
    brightness: "50", // 0 to 100
    avatar: "https://imgur.com/uNeB2S6.png",
    progress: "33",
    rank: "1",
    requiredXp: "4900",
    currentXp: "1600",
    showXp: true
});

const attachment = new AttachmentBuilder(rankcard, { name: "rankcard.png" });

Preview:

RankCard

Dependents (0)

Package Sidebar

Install

npm i rankcard

Weekly Downloads

30

Version

1.2.8

License

MIT

Unpacked Size

13.5 MB

Total Files

21

Last publish

Collaborators

  • aikoonee