← Public packages
@kody/spotify
Read a Spotify profile, search the catalog, and manage library, playlists, devices, and playback.
Files
import { listPlaylists } from '../lib/spotify-api.ts'
import type { ListPlaylistsParams } from '../lib/export-types.ts'
/**
* List the authenticated user's Spotify playlists.
* @example
* import listPlaylists from 'kody:@kody/spotify/list-playlists'
* const playlists = await listPlaylists({ limit: 10 })
*/
export default async function spotifyListPlaylists(params: ListPlaylistsParams = {}) {
return await listPlaylists(params)
}