$.getJSON(\'https://api.twitch.tv/kraken/channels/\' + SLoppierKitty7, function(channel) {
if (channel[\"stream\"] == null) {
var live =\"no\"
} else {
nothing worked for me from here,
my jquery version:3.2.1
jsdom version: 10.1.0 found a solution finally:
var myHtmlString = 'akkadsf lakuseh alhf lasudfa ls';
function jQuery(doc){
const jsdom = require("jsdom");
const { JSDOM } = jsdom;
const { window } = new JSDOM();
const JQ = require("jquery")(window)(`${doc || ''}`);
}
var $ = jQuery;
// my html string:
var text = $(myHtmlString).text();