import { XMLParser } from 'fast-xml-parser' import Action from './../../packages/runner/actions/action.ts' /** * getting rss feed from url, parse response and send to console * * @author Björn Hase * @license http://opensource.org/licenses/MIT The MIT License * @link https://git.node001.net/HerrHase/super-hog.git * */ class RssExample extends Action { async run() { const response = await fetch(this.config.url) const body = await response.text() const parser = new XMLParser() this.result = parser.parse(body) console.log(this.result) } } export default RssExample