Azul Lyrics
Installation:
npm i azul-lyrics
Usage (without Callback):
const AzulLyrics = require("azul-lyrics");
const lyricsClient = new AzulLyrics();
const query = {
title: "Never Gonna Give You Up",
artist: "Rick Astley"
}
const provider = AzulLyrics.PROVIDERS.AUTO;
const result = await lyricsClient.searchForLyrics(query, provider);
if ("error" in result) return console.error(result.error);
console.log("It works: %o", result);
Usage (with Callback)
const AzulLyrics = require("azul-lyrics");
const lyricsClient = new AzulLyrics();
const query = {
title: "Never Gonna Give You Up",
artist: "Rick Astley"
}
const provider = AzulLyrics.PROVIDERS.AUTO;
lyricsClient.searchForLyrics(query, provider, function(result) {
if ("error" in result) {
return console.error(result.error);
};
return console.log("It works: %o", result);
});
Author:
TheRealGeoDash2019