Sunday 29 July 2018

"SyntaxError: Unexpected token ("

Hi, I'm new to node and im trying to use rss-parser : https://ift.tt/2K6BRTv 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://ift.tt/2mPSgm3); 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

Submitted July 29, 2018 at 09:40AM by Ryan_Bingham

No comments:

Post a Comment