{"id":16201433,"url":"https://github.com/amscotti/hn-node","last_synced_at":"2025-04-07T18:35:29.861Z","repository":{"id":176202192,"uuid":"655110706","full_name":"amscotti/hn-node","owner":"amscotti","description":"A command-line Node.js / Bun application that fetches and displays the top stories from Hacker News.","archived":false,"fork":false,"pushed_at":"2024-03-12T21:50:53.000Z","size":277,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T13:09:20.112Z","etag":null,"topics":["bun","command-line","hackernews","hackernews-api","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amscotti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-17T23:27:57.000Z","updated_at":"2024-03-12T21:55:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"68c4b82e-e216-43f8-b558-5a889e7fabe8","html_url":"https://github.com/amscotti/hn-node","commit_stats":null,"previous_names":["amscotti/hn-node"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amscotti%2Fhn-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amscotti%2Fhn-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amscotti%2Fhn-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amscotti%2Fhn-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amscotti","download_url":"https://codeload.github.com/amscotti/hn-node/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247707391,"owners_count":20982777,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bun","command-line","hackernews","hackernews-api","nodejs"],"created_at":"2024-10-10T09:37:55.854Z","updated_at":"2025-04-07T18:35:29.831Z","avatar_url":"https://github.com/amscotti.png","language":"JavaScript","readme":"# Node.js Hacker News Fetcher\n\n![Command-line Output](/images/output.png)\n\nA command-line Node.js application that fetches and displays the top stories from Hacker News in a clean, easy-to-read format. It supports customization options such as the number of stories to fetch and whether to display source URLs. Ideal for quick updates without leaving your terminal.\n\nThis project is a Node.js port of the [Go](https://github.com/amscotti/hacker_news) and [C#](https://github.com/amscotti/hn-top) versions. It is also compatible with the [Bun](https://bun.sh/) JavaScript runtime.\n\nThis project requires Node.js version 20+ as it utilizes the `fetch` API.\n\n## Usage\n\nThe application supports the following command-line options:\n\n```\nOptions:\n  -n, --number      Number of top news to show             [number] [default: 5]\n  -u, --sourceUrls  Show source urls                  [boolean] [default: false]\n  -h, --help        Show help                                          [boolean]\n  -v, --version     Show version number                                [boolean]\n```\n\nExample usage with options: \n\nFetch and display the top 10 stories with their source URLs:\n\n```bash\nnpm start -- -n 10 -u\n```\n\n## License\n\nThis project is licensed under the MIT License.\n\n## Contributing\n\nPull requests are welcome.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famscotti%2Fhn-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famscotti%2Fhn-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famscotti%2Fhn-node/lists"}