1.2.2 • Published 3 years ago

@j0r6it0/lyricsfinder v1.2.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

@j0r6it0/lyricsfinder

A simple module to get the lyrics of a song. It uses Genius as the main option and falls back to Google if no song is found. If nothing is found, it returns false. Song titles are automatically 'cleaned' for a more reliable search. ("Passenger | Let Her Go (Official Video)" will be transformed to "passenger let her go"). Should work with songs in every language.

Install

npm i @j0r6it0/lyricsfinder

Usage

const findLyrics = require('@j0r6it0/lyricsfinder');


const lyrics = await findLyrics("Alan Walker Alone", { useGenius: true, useGoogle: true });

if (lyrics == false) return console.log("Lyrics not found");

console.log(lyrics.lyrics);
console.log(lyrics.artist); // Only available when getting the song from Genius, otherwise returns undefined
console.log(lyrics.title); // Only available when getting the song from Genius, otherwise returns undefined
console.log(lyrics.thumbnail); // Only available when getting the song from Genius, otherwise returns undefined

Options

geniusToken: Genius Api Access Token [Optional]
useGenius: true/false [Optional] (Default: true)
useGoogle: true/false [Optional] (Default: true)
1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago