I am trying out node-fetch and the only result I am getting is:
node-fetch
Promise { }
How can I fix this so I get a completed
u.json() returns a promise, so you'd need to do this
u.json()
nf(url) .then(function(u){ return u.json(); }) .then(function(j) { console.log(j); });
or as you're using node
nf(url).then(u => u.json()).then(j => console.log(j));