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

geniuslyricfinder

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geniuslyricfinder - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

3

genius.js

@@ -30,3 +30,3 @@ const fetch = require('node-fetch');

.then(r => r.json())
.catch(e => { throw new Error("😢 Genius API failed to search for that song") });
.catch(e => { throw new Error("😢 Genius API failed to search for that song\n" + e) });

@@ -63,2 +63,3 @@ if (multiSearch.response && multiSearch.response.sections && multiSearch.response.sections[0] && multiSearch.response.sections[0].hits && multiSearch.response.sections[0].hits[0] && multiSearch.response.sections[0].hits[0].result && multiSearch.response.sections[0].hits[0].result.url) {

if (response.lyrics.length == 0) return getLyrics(query);
response.artist = songMetadata["artist_names"]

@@ -65,0 +66,0 @@ response.song = songMetadata["title"]

{
"name": "geniuslyricfinder",
"version": "1.0.0",
"version": "1.0.1",
"description": "Uses genius.com to retrieve song lyrics",

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

# LyricFinder
Scrapes from Genius to fetch useful song info including lyrics
## Example
```javascript
const geniuslyricfinder = require("geniuslyricfinder")
geniuslyricfinder.getLyrics("Primadonna")
.then(r => console.log(r))
.catch(e => console.log(e))
```
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