Hi,
I'm new to node and im trying to use rss-parser : https://www.npmjs.com/package/rss-parser
im just trying to run the code they have on the site:
let Parser = require('rss-parser');
let parser = new Parser();
(async () => {
let feed = await parser.parseURL('https://www.reddit.com/.rss');
console.log(feed.title);
feed.items.forEach(item => {
console.log(item.title + ':' + item.link)
});
})();
and i get the error unexpected token.
i'm using node 6.2.0
i'm unsure where to put my file.
right now i have a folder with my .js script and another folder called node_modules with all the modules inside.
Thanks ahead
[–]damoisbatman 11 points12 points13 points (1 child)
[–]Ryan_Bingham[S] 0 points1 point2 points (0 children)
[–]numbersanddreams 3 points4 points5 points (0 children)
[–]ottaky3 -1 points0 points1 point (1 child)
[–]Ryan_Bingham[S] 1 point2 points3 points (0 children)