genius-lyrics-ts
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18363