A lyrics api which actually works!
It scrapes the lyrics from Google so no seperate API key is needed.
npm install --save lyrics-finder
const lyricsFinder = require('lyrics-finder');
(async function(artist, title) {
let lyrics = await lyricsFinder(artist, title) || "Not Found!";
console.log(lyrics);
})("poets of fall", "carnival of rust");
npx lyrics-finder "a r rahman" "kun faya kun"
Note: Use this method only if you plan to use lyrics-finder for one time, installing lyrics-finder globally (see-below) is recommended for multiple time usages.
npm install lyrics-finder -g
Note: DO NOT use sudo to install global packages! The correct way is to tell npm where to install its global packages:
npm config set prefix ~/.local
. Make sure~/.local/bin
is added toPATH
.
lyrics-finder "prateek kuhad" "cold mess"
It takes two arguments, artist name and song name and returns the lyrics as a string if found, else it will return an empty string (if used in code). The CLI binary logs the lyrics on your console (stdout) if found, else it will log 'Not Found!'.
π€ Rahil Kabani rahil.kabani.4@gmail.com
Give a βοΈ if this project helped you!
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
π Homepage