Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@alufi/lyrics-api

alufibot148ISC1.0.0-devTypeScript support: included

Official Lyrics API wrapper of Alufi Bot

discord, discord-bot, alufi, alufi-bot, discord.js, discord-music, discord-lyrics, discord-music-lyrics, lyrics-api, api-wrapper, lyrics-api-simple, lyrics-simple, musixmatch, rapidapi, genius, api-js

readme

@alufi/lyrics-api

An official Lyrics API wrapper of Alufi Bot

Example

  • Check About Npm
    console.log(require('@alufi/lyrics-api'));
  • For Usage Basics `js 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
```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 
    }