1.0.2 • Published 4 months ago
topggcard v1.0.2
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
NPM Stats
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
Credits
Feel free to contribute, report issues, or suggest enhancements. Your feedback is highly appreciated!