{"id":15725026,"url":"https://github.com/ecto/node-hackernews","last_synced_at":"2025-05-06T02:55:42.784Z","repository":{"id":1934342,"uuid":"2863198","full_name":"ecto/node-hackernews","owner":"ecto","description":"a nodejs API client for hacker news","archived":false,"fork":false,"pushed_at":"2011-11-28T00:49:51.000Z","size":94,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-06T02:55:38.804Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ecto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-27T21:56:33.000Z","updated_at":"2016-07-30T17:44:52.000Z","dependencies_parsed_at":"2022-09-09T06:10:35.972Z","dependency_job_id":null,"html_url":"https://github.com/ecto/node-hackernews","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecto%2Fnode-hackernews","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecto%2Fnode-hackernews/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecto%2Fnode-hackernews/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecto%2Fnode-hackernews/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecto","download_url":"https://codeload.github.com/ecto/node-hackernews/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252612465,"owners_count":21776254,"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":[],"created_at":"2024-10-03T22:18:58.159Z","updated_at":"2025-05-06T02:55:42.762Z","avatar_url":"https://github.com/ecto.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# hn\n\na hacker news API client for nodejs\n\n![hn](http://i.imgur.com/3AIoG.jpg)\n\nThis client interacts with the [iHackerNews API](http://api.ihackernews.com/).\n\n# install\n\nfor the library:\n\n    npm install hn\n\n# usage\n\n````javascript\nvar hn = require('hn');\n\nvar print = function (err, data) {\n  if (err) throw new Error (err);\n  console.log('\\n\\n\\n');\n  for (var i in data) {\n    console.log(i + ': ' + data[i]);\n  }\n}\n\n// get the front page\nhn.page('front', print);\n\n// get newest posts\nhn.page('new', print);\n\n// get profile information\nhn.profile('pg', print);\n\n// get all threads started by a user\nhn.by('pg', print);\n\n// get thread information\nhn.item('3283768', print);\n````\n\n# license\n\n(The MIT License)\n\nCopyright (c) 2011 Cam Pedersen \u003ccam@onswipe.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecto%2Fnode-hackernews","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecto%2Fnode-hackernews","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecto%2Fnode-hackernews/lists"}