Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

azul-lyrics

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azul-lyrics

A package to get lyrics for songs

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 11 Oct 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc