1.0.2 • Published 4 months ago

topggcard v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

TopGGCard

TopGGCard is a powerful Node.js package designed to create visually appealing cards displaying user votes, username with avatar, and additional customizable features. Elevate your user experience by showcasing engagement metrics in a stylish manner.

Repository Stats

GitHub Repo Stars GitHub Repo Forks GitHub Issues GitHub Pull Requests

NPM Stats

NPM Version NPM Downloads NPM License

Installation

npm install topggcard

Usage

const { TopGGCard } = require("topggcard");
const fs = require("fs");

const card = new TopGGCard()
    .setName("Devansh")
    .setVotes("7")
    .setColor("auto")
    .setBrightness(100)
    .setAvatar("https://link-to-avatar-image.jpg")
    .setProgress(50)
    .setStreak("7")
    .setCurrentStreak("7")
    .setRequiredStreak("14")
    .setShowStreak(true);

const cardBuffer = await card.build();

fs.writeFileSync(`TopGGCard.png`, cardBuffer);
console.log("Done!");

Preview

TopGGCard Preview

Credits

Feel free to contribute, report issues, or suggest enhancements. Your feedback is highly appreciated!