Necesito Programar Más

    slyrics
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.2 • Public • Published

    slyrics - Fetch Lyrics Without Api Key

    Installation

    Using npm:

    npm install slyrics --save
    

    Using yarn:

    yarn add slyrics
    

    Documentation

    Typedoc

    Typescript Example

    import { ILyricsSearchResult } from "./interfaces";
    import { Lyrics } from "./structures";
    import { MelonProvider } from "./providers/MelonProvider";
    
    async function example() {
      const provider = new MelonProvider();
      const res: ILyricsSearchResult = await provider.search("RE:WIND");
      if (res.entries.length === 0) {
        console.log("No result");
      } else {
        const lyricsInstance: Lyrics = await res.entries[0].getLyrics();
        console.log(
          `${res.entries.length} results found.\nFirst one: ${lyricsInstance.title} - ${lyricsInstance.artist}
    ${lyricsInstance.lyrics}`
        );
      }
    }
    
    example();
    Provider tag Contributor
    Melon melon Sangoon_Is_Noob

    Install

    npm i slyrics

    DownloadsWeekly Downloads

    35

    Version

    1.0.2

    License

    AGPL-3.0

    Unpacked Size

    27.1 kB

    Total Files

    57

    Last publish

    Collaborators

    • sangoon_is_noob