1.0.1 • Published 2 years ago

easy-lyrics v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Easy Lyrics

This is a little module I made for my Discord bot to simplify the process of getting lyrics from Genius. It basically wraps genius-lyrics

Installation

npm i -s easy-lyrics

Usage

The usage of this module is pretty simple:

const Lyrics = require('easy-lyrics')
var lyrics = new Lyrics("optional-genius-api-key") // if no key is provided, the library will scrape data

(async () => {
	var results = await lyrics.fetch("blinding lights the weeknd", true) // if you want extra data besides the lyrics such as artist, title, etc, pass a true value for the 2nd parameter

	console.log(results)

	/*
		{
			title: 'Blinding Lights',
			artist: 'The Weeknd',
			thumbnail: 'https://images.genius.com/0b32bf010a7361676426365480c5cce8.300x300x1.jpg',
			url: 'https://genius.com/The-weeknd-blinding-lights-lyrics',
			lyrics: "..."
		}
	*/

})()

Credit

This library wraps another module. genius-lyrics by zyrouge

1.0.1

2 years ago

1.0.0

2 years ago