2.0.3 • Published 4 years ago

@penfoldium/lyrics-search v2.0.3

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

🔍 lyrics-search

🤔 How does it work?

We use the Genius API for the actual search and then we scrape the lyrics from the Genius page of the song, because their API does not return the lyrics.

📝 Requirements

💿 Installation

npm install @penfoldium/lyrics-search

🖊 Usage example

const lyrics_search = require('@penfoldium/lyrics-search');

const Lyrics = new lyrics_search('Genius Access Token');

const sickoMode = `She's in love with who I am
Back in high school, I used to bus it to the dance (Yeah)`; // Because we used backticks we can have new lines between the strings!

Lyrics.search(sickoMode)
    .then(console.log) // Short for .then(result => console.log(result))
    .catch(console.error) // Short for .catch(error => console.error(error))