nasa8x / rss-to-json

RSS and Atom feed generator for Node.js
https://morioh.com/@5df445b0103f3007600e1a57
178 stars 75 forks source link

import "load" via destructuring will error out "parser undefined" #10

Open kylegoetz opened 6 years ago

kylegoetz commented 6 years ago
const {load} = require('rss-to-json');
load(url, (err,res)=>{});
/*TypeError: $.parser is not a function
    at /.../rss-to-json/src/rss.js:28:28*/

A simple change to the structure of the code fixes this. Will submit PR.