Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Latest commit

 

History

History
106 lines (74 loc) · 2.75 KB

readme.md

File metadata and controls

106 lines (74 loc) · 2.75 KB

musicard-bun 🎵

The kawaii 💕 npm package for generating sugoi 🤩 music cards for your apps and sites!

npm install musicard-bun

This package is a fun fork of musicard with some radical new features 🌈 for maximum sugoi-ness!

Support Server

Usage

Generate a music card like normal:

(async () => {
    const { musicCard } = require("musicard-bun");
    const fs = require("fs");

    const card = new musicCard()
        .setName("Bad Habits")
        .setAuthor("By Ed Sheeran")
        .setColor("auto")
        .setTheme("dynamic")
        .setBrightness(50)
        .setThumbnail("https://static.qobuz.com/images/covers/ga/ua/rmk2cpqliuaga_600.jpg")
        .setProgress(10)
        .setStartTime("0:00")
        .setEndTime("3:00")

    const cardBuffer = await card.build();

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

The anime theme makes your cards look kawaii with rainbow sparkles and text 🌸✨

Here's a preview:

This is the anime output of musicard. anime

This is the classic output of musicard. classic

This is the dynamic output of musicard. dynamic

This is the space output of musicard. space

This is the space+ output of musicard. space

Rank Card

Generate a rank card like this:

(async () => {
   const { RankCard } = require("musicard-bun");
   const fs = require("fs");

   const card = new RankCard()
       .setName("Ayush")
       .setLevel("Level 22")
       .setColor("auto")
       .setBrightness(100)
       .setAvatar("https://static.qobuz.com/images/covers/ga/ua/rmk2cpqliuaga_600.jpg")
       .setProgress(38)
       .setRank("56")
       .setCurrentXp("589")
       .setRequiredXp("100000")
       .setShowXp(true);
    

   const cardBuffer = await card.build();

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

Preview:

RankCard

Credits

"We don't just copy, we paste with style."

Our core philosophy is simple:

Find something popular Copy it Slap better things on it

Original musicard package by A3PIRE