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

1.0.22 • Public • Published

🗒️ slyrics - Fetch Lyrics Without Api Key

slyrics version

📥 Installation

npm install slyrics --save
or
yarn add slyrics

Documentation

pages-build-deployment

Example Code

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");
    return;
  }
  const lyricsInstance: Lyrics = await res.entries[0].getLyrics();
  console.log(res.entires.length + " results");
  console.log("First entry: " + lyricsInstance.title + " - " + lyricsInstance.artist);
  console.log(lyricsInstance.lyrics);
}

example();
Provider tag Contributor
Melon melon Sannoob3144

Dependencies (2)

Dev Dependencies (11)

Package Sidebar

Install

npm i slyrics

Weekly Downloads

0

Version

1.0.22

License

MIT

Unpacked Size

27.2 kB

Total Files

51

Last publish

Collaborators

  • sanakyo