A decentralized music tracking and discovery platform built on AT Protocol 馃幍
at fix/spotify 16 lines 435 B view raw
1import chalk from "chalk"; 2import { RockskyClient } from "client"; 3 4export async function albums(did, { skip, limit }) { 5 const client = new RockskyClient(); 6 const albums = await client.getAlbums(did, { skip, limit }); 7 let rank = 1; 8 for (const album of albums) { 9 console.log( 10 `${rank} ${chalk.magenta(album.title)} ${album.artist} ${chalk.yellow( 11 album.play_count + " plays" 12 )}` 13 ); 14 rank++; 15 } 16}