@kody/spotify
src/exports/get-playlist.ts
12 lines · 455 B · TypeScriptimport { getPlaylist } from '../lib/spotify-api.ts'
import type { PlaylistIdParams } from '../lib/export-types.ts'
/**
* Read a Spotify playlist summary and up to 100 track previews.
* @example
* import getPlaylist from 'kody:@kody/spotify/get-playlist'
* const playlist = await getPlaylist({ playlistId: '37i9dQZF1DXcBWIGoYBM5M' })
*/
export default async function spotifyGetPlaylist(params: PlaylistIdParams) {
return await getPlaylist(params)
}