🎧 The official command-line interface for Rocksky — a modern, decentralized music tracking and discovery platform built on the AT Protocol.
at main 16 lines 425 B view raw
1import chalk from "chalk"; 2import { RockskyClient } from "client"; 3 4export async function artists(did, { skip, limit }) { 5 const client = new RockskyClient(); 6 const artists = await client.getArtists(did, { skip, limit }); 7 let rank = 1; 8 for (const artist of artists) { 9 console.log( 10 `${rank} ${chalk.magenta(artist.name)} ${chalk.yellow( 11 artist.play_count + " plays" 12 )}` 13 ); 14 rank++; 15 } 16}