Socket
Socket
Sign inDemoInstall

@alufi/lyrics-api

Package Overview
Dependencies
43
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @alufi/lyrics-api

Official Lyrics API wrapper of Alufi Bot


Version published
Maintainers
2
Created

Readme

Source

@alufi/lyrics-api

An official Lyrics API wrapper of Alufi Bot

Example

  • Check Properties & Methods
console.log(require('@alufi/lyrics-api'));
  • For Test
const lyrics = require('@alufi/lyrics-api');

// Only Lyrics
lyrics.get("SongTitle").then(console.log).catch(console.error);

// With Lyrics Data. optional=true / default is false
lyrics.get("SongTitle", true).then(console.log).catch(console.error);
const lyrics = require('@alufi/lyrics-api');

(async() => {
    try {
        const result = await lyrics.get("SongTitle");
        console.log(result); // get Lyrics
    } catch(Error) {
        console.error(Error); // get Error
    }
})();

Example Result

  • Only Lyrics (text)
Lyrics Content...
...
  • With Lyrics Data (JSON)
{
    data: {
        title: Lyrics Title,
        artist: Lyrics Artist Name,
        thumbnails: Lyrics Thumbnail URL,
        lyrics: Lyrics Content
    }
    response: Lyrics Result Latency 
}

Keywords

FAQs

Last updated on 01 Oct 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