Socket
Socket
Sign inDemoInstall

llyrics

Package Overview
Dependencies
9
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    llyrics

A simple package to fetch lyrics from Genius API


Version published
Weekly downloads
12
decreased by-7.69%
Maintainers
1
Install size
2.12 MB
Created
Weekly downloads
 

Readme

Source

llyrics

A simple package to fetch lyrics from Genius API.

NPM version

NPM Banner

This package was originally used only for my personal needs to fetch lyrics from Genius API using my discord bot, but then I decided to make this package open source and let everyone use it.


Install

npm install llyrics
# or
yarn add llyrics

Example

const findLyrics = require("llyrics"); // Import llyrics

client.on("interactionCreate", async (message) => {
    
    let apiKey = "GENIUS_API_KEY"; // Your Genius API Key
    let songName = "SONG_NAME"; // Song Name

    await findLyrics(apiKey, songName);

    const lyrics = findLyrics.lyrics; // To get the lyrics
    const trackName = findLyrics.trackName; // To get the Track Name
    const trackArtist = findLyrics.trackArtist; // To get the Track Artis

    interaction.channel.send({
        content: lyrics,
    });
});

client.login("token");

Usage

OptionTypeDescription
apiKeyStringGenius API Key to fetch the lyrics from their API.
https://genius.com/api-clients
songNameStringSong name to fetch the lyrics.

Keywords

FAQs

Last updated on 29 Mar 2024

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