2.0.5 • Published 1 year ago

@brandond/findthelyrics v2.0.5

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
1 year ago

findthelyrics

NPM package to find lyrics to any given song.

NPMJS Package | Github Repo

Disclaimer

Although the code is not licensed, the lyrics are highly likely to be licensed by the respective record label.

To programmatically check the record label of the song, use Discogs API.

I take no responsibility for the actions used with the code.

How is it done?

It scrapes Genius to find the lyrics.

If the scraper fails on Genius, it falls back to MusixMatch.

Sample Code

This code gets the lyrics of I Just Wanna Shine by Fitz and The Tantrums.

import { find_lyrics } from "@brandond/findthelyrics";

const lyrics = await find_lyrics("Fitz and The Tantrums I Just Wanna Shine");
if (lyrics instanceof Error) {
    console.error(lyrics);
} else {
    console.log(lyrics);
    // [Chorus]
    // I just wanna shine like the sun when it comes up
    // Run the city from the rooftops
    // 'Cause today’s gonna be my day
    // I just wanna climb to the top of a mountain
    // Standing tall when I'm howlin'
    // ...
}
2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago