Hacker News API Wrapper for Node
github.com
Hacker News API Wrapper for Node
1–6 of 6 posts
Re: Hacker News API Wrapper for Node
#2Re: Hacker News API Wrapper for Node
#3Re: Hacker News API Wrapper for Node
#4 hn.item(8863, function(err, item){
console.log(item);
});
Edit: Actually, there is a lot that isn't correct about this library.. you should add a disclaimer that this is a WIP and is not in a usable state.Re: Hacker News API Wrapper for Node
#5Your requests are not async and so the item will always be `undefined`. You should add a callback to your functions. hn.item(8863, function(err, item){ console.log(item); }); Edit: Actually, there is a lot that isn't correct about this library.. you should add a disclaimer that this is a WIP and is not in a usable state.
A lot still needs to be fixed and done. Hoping this is a good way to get people involved. Would love any contributions you might want to make.
UPDATE: Made some updates. Give it a look now.
Re: Hacker News API Wrapper for Node
#6Your requests are not async and so the item will always be `undefined`. You should add a callback to your functions. hn.item(8863, function(err, item){ console.log(item); }); Edit: Actually, there is a lot that isn't correct about this library.. you should add a disclaimer that this is a WIP and is not in a usable state.
Yes WIP (just started throwing it together now), not stable yet. I'll add that. Thanks. A lot still needs to be fixed and done. Hoping this is a good way to get people involved. Would love any contributions you might want to make. UPDATE: Made some updates. Give it a look now.
https://github.com/edwellbrook/node-hacker-news/blob/master/...
(This isn't my library)