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.

Readme

Keywords

Package Sidebar

Install

npm i fetch-lyrics

Weekly Downloads

20

Version

1.0.15

License

MIT

Unpacked Size

7.08 kB

Total Files

4

Last publish

Collaborators

  • susudeepa