Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/spotify

src/exports/list-playlists.ts

12 lines · 439 B · TypeScript
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)
}