Socket
Socket
Sign inDemoInstall

easy-lyrics

Package Overview
Dependencies
13
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    easy-lyrics

Fetches lyrics from the Genius Lyrics API


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 28 Feb 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc