@penfoldium/lyrics-search

2.0.3 • Public • Published

🔍 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))

Package Sidebar

Install

npm i @penfoldium/lyrics-search

Weekly Downloads

0

Version

2.0.3

License

MIT

Unpacked Size

7.95 kB

Total Files

5

Last publish

Collaborators

  • alexthemaster