Constructors

Properties

Methods

Constructors

Properties

client: Client

Methods

  • Fetches the song using the provided ID (requires key).

    Parameters

    • id: number

    Returns Promise<Song>

    Example

    const Song = await SongsClient.get(3276244);
    
  • Scrapes the song page for data.

    Parameters

    • url: string

    Returns Promise<ScrapedSong>

    Example

    const ScrapedSong = await SongsClient.scape("https://genius.com/Alan-walker-faded-lyrics");
    
  • Searches for songs for the provided query.

    Parameters

    Returns Promise<Song[]>

    Example

    const SearchResults = await SongsClient.search("faded");
    
  • Parameters

    • query: string

    Returns string

Generated using TypeDoc