Socket
Socket
Sign inDemoInstall

@tovade/genius-lyrics

Package Overview
Dependencies
16
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tovade/genius-lyrics

Fetches Lyrics from Genius at Ease.


Version published
Maintainers
1
Weekly downloads
1

Weekly downloads

Readme

Source

Genius Lyrics 🎵

Node.js CI FOSSA Status Documentation

🤔 Whats is this?

Just a simple lyrics fetcher that uses Genius. This also has official API implementations.

💻 Installation

npm install genius-lyrics

⚙️ Usage

const Genius = require("genius-lyrics");
const Client = new Genius.Client("top-secret-optional-key");

✏️ Examples

Requiring

JavaScript

const Genius = require("genius-lyrics");
const Client = new Genius.Client("top-secret-optional-key"); // Scrapes if no key is provided

TypeScript

import Genius from "genius-lyrics";
const Client = new Genius.Client("top-secret-optional-key"); // Scrapes if no key is provided

Fetching a Song and Lyrics

const searches = await Client.songs.search("faded");

// Pick first one
const firstSong = searches[0];
console.log("About the Song:\n", firstSong, "\n");

// Ok lets get the lyrics
const lyrics = await firstSong.lyrics();
console.log("Lyrics of the Song:\n", lyrics, "\n");

Fetching an Artist

const artist = await Client.artists.get(456537);
console.log("About the Artist:\n", artist, "\n");

Keywords

FAQs

Last updated on 10 Jun 2021

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