Socket
Socket
Sign inDemoInstall

azul-lyrics

Package Overview
Dependencies
6
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    azul-lyrics

A package to get lyrics for songs


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Azul Lyrics


Installation:

npm i azul-lyrics

Usage (without Callback):

const AzulLyrics = require("azul-lyrics");
const lyricsClient = new AzulLyrics(/* My API Key Goes Here*/);

// Search for Never Gonna Give You Up by Rick Astley
const query = {
    title: "Never Gonna Give You Up",
    artist: "Rick Astley"
}
// By Default, the provider is AUTO
const provider = AzulLyrics.PROVIDERS.AUTO;

// Provide the query and provider (optional)
const result = await lyricsClient.searchForLyrics(query, provider);
if ("error" in result) return console.error(result.error);
console.log("It works: %o", result);

Usage (with Callback)

const AzulLyrics = require("azul-lyrics");
const lyricsClient = new AzulLyrics(/* My API Key Goes Here*/);

// Search for Never Gonna Give You Up by Rick Astley
const query = {
    title: "Never Gonna Give You Up",
    artist: "Rick Astley"
}
// By Default, the provider is AUTO
const provider = AzulLyrics.PROVIDERS.AUTO;

// Add the 3rd Param: callback (optional)
lyricsClient.searchForLyrics(query, provider, function(result) {
    if ("error" in result) {
        return console.error(result.error);
    };
    return console.log("It works: %o", result);
});

Author:

TheRealGeoDash2019

Keywords

FAQs

Last updated on 11 Oct 2023

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