Socket
Socket
Sign inDemoInstall

@alufi/lyrics-api

Package Overview
Dependencies
37
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
Weekly downloads
5
increased by400%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

@alufi/lyrics-api

An official Lyrics API wrapper of Alufi Bot

Example

  • Check About Npm
console.log(require('@alufi/lyrics-api'));
  • For Usage Basics
const lyrics = require('@alufi/lyrics-api');

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

// With Lyrics Data. optional default is false
lyrics.get("SongTitle", true).then(console.log).catch(console.error);
  • For Usage With Asynchronus System JS
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 05 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