fetch-lyrics

1.0.15 • Public • Published

Fetch Lyrics

Easily fetch song lyrics from azlyrics.com!

Installation

You can install the package via npm:

npm install fetch-lyrics

Usage

const { fetchLyrics } = require('fetch-lyrics');

// Example 1: Get lyrics for a specific song
fetchLyrics('Bohemian Rhapsody').then((lyrics) => {
    console.log(lyrics);
  // {
  //   title: '"Bohemian Rhapsody"  - Queen',
  //   lyrics: 'Is this the real life?\n' +
  //     'Is this just fantasy?\n' +
  //     'Caught in a landslide\n' +
  //     'No escape from reality\n' +
  //     ...
  // }
}).catch((error) => {
  console.error(error);
});

License

This project is licensed under the MIT License - see the LICENSE file for details.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i fetch-lyrics

    Weekly Downloads

    5

    Version

    1.0.15

    License

    MIT

    Unpacked Size

    7.08 kB

    Total Files

    4

    Last publish

    Collaborators

    • susudeepa