Retun value in nodejs

const https = require('https');
const xml2js = require('xml2js');
const parser = new xml2js.Parser({ attrkey: "ATTR" });

var tranid = 1647048190112;
var url = "https://alpha5.mobikwik.com/[email protected]&pwd=testalpha1@12345&txId=";

let req = https.get(url+tranid, function(res) {

    let data = '';
    res.on('data', function(stream) {data += stream;});
    res.on('end', function(){
        parser.parseString(data, function(error, result) {
             if(error === null) {
                  console.log(result);
             }else{
                  console.log(error);
        }
        return response
        });
    });
});

//This is my code and I want to return the value in nodejs