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

genius-lyrics-ts

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

genius-lyrics-ts - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

dist/index.js

@@ -63,3 +63,3 @@ "use strict";

$('div[class^="Lyrics__Container"]').each((i, elem) => {
if ($(elem).text().length !== 0 && elem) {
if (elem) {
let snippet = $(elem).html().replace(/<br>/g, "\n").replace(/<(?!\s*br\s*\/?)[^>]+>/gi, "");

@@ -66,0 +66,0 @@ lyrics += $("<textarea/>").html(snippet).text().trim() + "\n\n";

{
"name": "genius-lyrics-ts",
"version": "0.0.2",
"version": "0.0.3",
"description": "Get lyrics from genius with Typescript, Javascript, or Node",

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

@@ -15,3 +15,3 @@ import * as cheerio from "cheerio";

$('div[class^="Lyrics__Container"]').each((i, elem) => {
if ($(elem).text().length !== 0 && elem) {
if (elem) {
// @ts-ignore

@@ -18,0 +18,0 @@ let snippet = $(elem)

Sorry, the diff of this file is not supported yet

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