I\'ve searched all over stackoverflow / google for this, but can\'t seem to figure it out.
I\'m scraping social media links of a given URL page, and the function re
If you're geting [object object] then use JSON.stringify
[object object]
JSON.stringify
fs.writeFile('./data.json', JSON.stringify(obj) , 'utf-8');
It worked for me.