UNPKG

spottydl

Version:

NodeJS Spotify Downloader without any API Keys or Authentication

20 lines (19 loc) 884 B
import { Album, Track, Playlist } from './index'; /** * Get the Track details of the given Spotify Track URL * @param {string} url Track URL ex `https://open.spotify.com/track/...` * @returns {Track} <Track> if success, `string` if failed */ export declare const getTrack: (url?: string) => Promise<Track | string>; /** * Get the Album details of the given Spotify Album URL * @param {string} url Album URL ex `https://open.spotify.com/album/...` * @returns {Album} <Album> if success, `string` if failed */ export declare const getAlbum: (url?: string) => Promise<Album | string>; /** * Get the Playlist details of the given Spotify Playlist URL * @param {string} url Playlist URL ex `https://open.spotify.com/playlist/...` * @returns {Playlist} <Playlist> if success, `string` if failed */ export declare const getPlaylist: (url?: string) => Promise<Playlist | string>;