RunKit + npm: cheerio

node v15.14.0
endpointsharetweet
const cheerio = require('cheerio') const fetch = require('isomorphic-unfetch') const BNR_URL = 'https://www.bnr.ro/nbrfxrates.xml' fetch(BNR_URL) .then((response) => response.text()) .then((xml) => { const $ = cheerio.load(xml, { xmlMode: true, }) console.log($('Rate')) })
Created from: https://npm.runkit.com/cheerio
Loading…