fetch-lyrics
v1.0.15
Published
A simple package to fetch song lyrics from azlyrics.com (it works)
Downloads
173
Readme
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.