1.0.22 • Published 12 months ago

slyrics v1.0.22

Weekly downloads
75
License
MIT
Repository
github
Last release
12 months ago

📥 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();
ProvidertagContributor
MelonmelonSannoob3144
1.0.22

12 months ago

1.0.21

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.0-alpha.1

2 years ago

0.1.42

4 years ago

0.1.40

4 years ago

0.1.32

4 years ago

0.1.31

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago