songcard
v1.2.0
Published
A simple package to create song card.
Downloads
3,584
Maintainers
Readme
Install
npm install songcard
# or
yarn add songcard
Usage
| Option | Type | Description |
|------------------------|------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
| imageBg | String | Image that will be display to the songcard. Example: https://images-ext-1.discordapp.net/external/uw_-bWFyeXnWb11wGThe2CAbTYdrxzFqMJ2trxDIYVE/https/i.scdn.co/image/ab67616d0000b2738ad8f5243d6534e03b656c8b?width=468&height=468 File format: PNG/JPEG |
| imageText | String | Text that will be display to the songcard. |
| trackStream | Boolean | Whether to set the trackDuration and trackTotalDuration to LIVE
Example: if trackStream is true
the trackDuration and totalTrackDuration will show as LIVE
else it will show number. |
| trackDuration | Integer | Show current duration of the songs. If no value provide it will show 0:00
. |
| trackTotalDuration | Integer | Show the songs duration. |