constgsCard=require("gs-card");constcard=newgsCard("Mafia-boss-lvl-420",{mainColor: "#f4af33",secondColor: "#000000",edgeSize: 10,avatarCircleSize: 3,avatarCircleColor: "#775ef0",statsTextColor: `#775ef0`});constcreateCard=async()=>{letCreatedCard=awaitcard.create();//Retunrs the canvasawaitcard.write(CreatedCard,__dirname+"/CreatedCard.png");//Writes the image to a fileconsole.log("Card created!");};createCard();
The Card Created:
All options
mainColor//The main color of the card secondColor//The scond color of the cardedgeSize//The size of the edge around the card showAvatar//If you want to show your avatarshowRepoCount//If you want to show how many repos you have (public)statsTextColor//The color of the stats textavatarCircleColor//The color of the circle around the avataravatarCircleSize//The size od the circle around you avatatshowBio//If you want to show your bioshowStars//If you want to show how many stars you haveshowForks//If you want to show how many forks you have
All options are on as default if you want to turn them off define the option.