TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Hacker News API Wrapper for Node

5 点作者 chasef超过 10 年前

3 条评论

jbraithwaite超过 10 年前
Your requests are not async and so the item will always be `undefined`. You should add a callback to your functions.<p><pre><code> hn.item(8863, function(err, item){ console.log(item); }); </code></pre> Edit: Actually, there is a lot that isn&#x27;t correct about this library.. you should add a disclaimer that this is a WIP and is not in a usable state.
评论 #8436625 未加载
chasef超过 10 年前
Just started whipping this up. Would love if people wanted to help contribute to make it awesome. Thanks!
buddy0815超过 10 年前
Nice!