@allvaa/get-lyrics
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

@allvaa/get-lyrics

Scrape lyrics of given song title from Genius.

Install

# npm
npm i @allvaa/get-lyrics

# yarn 
yarn add @allvaa/get-lyrics

Using

const song = require("@allvaa/get-lyrics");

(async () => {
    const result = await song("title here");
    console.log(result); // returns Song object
})();

Song object

interface Song {
    title: string; // song title
    image: string; // song image
    geniusUrl: string; // lyrics url from Genius
    lyrics: string; // scraped lyrics
}

Package Sidebar

Install

npm i @allvaa/get-lyrics

Weekly Downloads

3

Version

1.1.4

License

MIT

Unpacked Size

3.38 kB

Total Files

6

Last publish

Collaborators

  • allvaa