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

lyricsfetchergenius

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lyricsfetchergenius - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "lyricsfetchergenius",
"version": "0.0.2",
"version": "0.0.3",
"description": "A npm package to fetch lyrics from genius api",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,4 +0,4 @@

#Lyrics Fetcher Genius
# Lyrics Fetcher Genius
#How to Use
# How to Use

@@ -5,0 +5,0 @@ Using GetLyrics:

@@ -25,10 +25,10 @@ const axios = require("axios");

};
const rawData = await axios.get(
const { data } = await axios.get(
AuthHeader ? RequestURL : `${RequestURL}&access_token=${APIKey}`,
AuthHeader && { Headers }
);
if (rawData.data.response.hits.length === 0) return null;
const results = rawData.data.response.hits.map((value) => {
const { Full_Title, Song_Art_Image_URL, ID, URL } = value;
return { ID, Title: Full_Title, Album_Art: Song_Art_Image_URL, URL };
if (data.response.hits.length === 0) return null;
const results = data.response.hits.map((value) => {
const { full_title, song_art_image_url, id, url } = value.result;
return { id, Title: full_title, Album_Art: song_art_image_url, url };
});

@@ -35,0 +35,0 @@ return results;

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