1.0.3 • Published 4 years ago

gs-card v1.0.3

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

gs-card

Makes a profile card for your github

Creating a card

const gsCard = require("gs-card");

const card = new gsCard("Mafia-boss-lvl-420", {
    mainColor: "#f4af33",
    secondColor: "#000000",
    edgeSize: 10,
    avatarCircleSize: 3,
    avatarCircleColor: "#775ef0",
    statsTextColor: `#775ef0`
});

const createCard = async () => {
    let CreatedCard = await card.create(); //Retunrs the canvas
    await card.write(CreatedCard, __dirname + "/CreatedCard.png"); //Writes the image to a file
    console.log("Card created!");
};

createCard();

The Card Created:


All options

mainColor          //The main color of the card   
secondColor        //The scond color of the card
edgeSize           //The size of the edge around the card  
showAvatar         //If you want to show your avatar
showRepoCount      //If you want to show how many repos you have (public)
statsTextColor     //The color of the stats text
avatarCircleColor  //The color of the circle around the avatar
avatarCircleSize   //The size od the circle around you avatat
showBio            //If you want to show your bio
showStars          //If you want to show how many stars you have
showForks          //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.